mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 20:22:45 +01:00
botchk: move imports to top-level
This commit is contained in:
parent
21b7408ca8
commit
654937ecfc
@ -31,6 +31,17 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
###
|
###
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
import optparse
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
# XXX I wanted this for conf.version, but this will create directories. We
|
||||||
|
# really need to refactor conf so it either doesn't create directories, or
|
||||||
|
# so that static information (like the version) can be imported from
|
||||||
|
# somewhere else.
|
||||||
|
# from supybot import conf
|
||||||
|
|
||||||
VERBOSE = False
|
VERBOSE = False
|
||||||
|
|
||||||
def readPid(filename):
|
def readPid(filename):
|
||||||
@ -54,16 +65,6 @@ def debug(s):
|
|||||||
sys.stdout.write(s)
|
sys.stdout.write(s)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# XXX I wanted this for conf.version, but this will create directories. We
|
|
||||||
# really need to refactor conf so it either doesn't create directories, or
|
|
||||||
# so that static information (like the version) can be imported from
|
|
||||||
# somewhere else.
|
|
||||||
# import supybot.conf as conf
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import optparse
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
parser = optparse.OptionParser(usage='Usage: %prog [options]')
|
parser = optparse.OptionParser(usage='Usage: %prog [options]')
|
||||||
parser.add_option('', '--verbose', action='store_true',
|
parser.add_option('', '--verbose', action='store_true',
|
||||||
help='Makes output verbose.')
|
help='Makes output verbose.')
|
||||||
|
Loading…
Reference in New Issue
Block a user