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

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2011-10-18 20:42:09 +02:00
parent 0344796d31
commit 8b9e6780b8

View file

@ -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()