forked from ungleich-public/cdist
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:
parent
0344796d31
commit
8b9e6780b8
1 changed files with 3 additions and 5 deletions
|
@ -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…
Reference in a new issue