configurationengine/source/scripts/tests/scripttest_common.py
changeset 3 e7e0ae78773e
parent 0 2e8eeb919028
equal deleted inserted replaced
2:87cfa131b535 3:e7e0ae78773e
    19 ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
    19 ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
    20 
    20 
    21 if sys.platform == "win32":
    21 if sys.platform == "win32":
    22     CONE_SCRIPT = "cone.cmd"
    22     CONE_SCRIPT = "cone.cmd"
    23 else:
    23 else:
    24     CONE_SCRIPT = "cone.sh"
    24     CONE_SCRIPT = "cone"
    25 
    25 
    26 def get_cmd(action):
    26 def get_cmd(action):
    27     """Return the command used to run the ConE sub-action"""
    27     """Return the command used to run the ConE sub-action"""
    28     if 'CONE_PATH' in os.environ:
    28     if 'CONE_PATH' in os.environ:
    29         CONE_CMD = os.path.join(os.environ['CONE_PATH'], CONE_SCRIPT)
    29         CONE_CMD = os.path.join(os.environ['CONE_PATH'], CONE_SCRIPT)