no need for a constant that's used two lines below

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
remotes/origin/feature_files_export
Nico Schottelius 13 years ago
parent 0344796d31
commit 8b9e6780b8
  1. 8
      bin/cdist

@ -195,19 +195,17 @@ if __name__ == "__main__":
import re
import sys
import cdist
log = logging.getLogger("cdist")
# Ensure our /lib/ is included into PYTHON_PATH
sys.path.insert(0, os.path.abspath(
os.path.join(os.path.dirname(os.path.realpath(__file__)), '../lib')))
import cdist
TYPE_PREFIX = "__"
logging.basicConfig(format='%(levelname)s: %(message)s')
if re.match(TYPE_PREFIX, os.path.basename(sys.argv[0])):
if re.match("__", os.path.basename(sys.argv[0])):
emulator()
else:
commandline()

Loading…
Cancel
Save