|
|
|
@ -219,16 +219,9 @@ if __name__ == "__main__":
|
|
|
|
|
import logging |
|
|
|
|
import os |
|
|
|
|
import re |
|
|
|
|
|
|
|
|
|
# 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'))) |
|
|
|
|
|
|
|
|
|
# And now import our stuff |
|
|
|
|
import cdist |
|
|
|
|
|
|
|
|
|
log = logging.getLogger("cdist") |
|
|
|
|
|
|
|
|
|
logging.basicConfig(format='%(levelname)s: %(message)s') |
|
|
|
|
|
|
|
|
|
if re.match("__", os.path.basename(sys.argv[0])): |
|
|
|
|