From 654937ecfcec5d602679a87f3d3b66523c1f6416 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 26 May 2023 20:27:39 -0700 Subject: [PATCH] botchk: move imports to top-level --- src/scripts/limnoria_botchk.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/scripts/limnoria_botchk.py b/src/scripts/limnoria_botchk.py index 97468b219..72888907b 100644 --- a/src/scripts/limnoria_botchk.py +++ b/src/scripts/limnoria_botchk.py @@ -31,6 +31,17 @@ # 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 def readPid(filename): @@ -54,16 +65,6 @@ def debug(s): sys.stdout.write(s) 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.add_option('', '--verbose', action='store_true', help='Makes output verbose.')