]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2297] (unrelated cleanup) don't bother to rename() it to be more standaalone
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 24 Oct 2012 21:27:02 +0000 (14:27 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 24 Oct 2012 21:27:02 +0000 (14:27 -0700)
rename() sysinfo doesn't make much sense anyway, because it's a short-lived
process.

src/bin/sysinfo/run_sysinfo.sh.in
src/bin/sysinfo/sysinfo.py.in

index c7688d5ea32dc6fd0dd410aadff11ab77a8370e4..b6b0c88d8c9841939abc8d96e488044ab169552f 100755 (executable)
@@ -20,6 +20,9 @@ export PYTHON_EXEC
 
 SYSINFO_PATH=@abs_top_builddir@/src/bin/sysinfo
 
+# Note: we shouldn't need log_messages except for the seemingly necessary
+# dependency due to the automatic import in the isc package (its __init__.py
+# imports some other modules)
 PYTHONPATH=@abs_top_builddir@/src/lib/python:@abs_top_srcdir@/src/lib/python:@abs_top_builddir@/src/lib/python/isc/log_messages
 export PYTHONPATH
 
index 24cf309a316390df5e0632b4b9dfecf2af5078d2..90204cd7a6d0e60538fdcc7c9ef7ab6d8ece677e 100755 (executable)
@@ -22,11 +22,8 @@ ISC sysinfo program.
 
 import sys; sys.path.append ('@@PYTHONPATH@@')
 import getopt
-import isc.util.process
 from isc.sysinfo import *
 
-isc.util.process.rename()
-
 def usage():
     print("Usage: %s [-h] [-o <output-file>]" % sys.argv[0], \
               file=sys.stderr)