-
Notifications
You must be signed in to change notification settings - Fork 303
Open
Description
def get_config_path(config=''):
path = ""
# ToDo: Support for command line argument pointing to config file.
if config == '':
if is_posix():
if os.path.isfile("/var/artillery/config"):
path = "/var/artillery/config"
if os.path.isfile("config"):
path = "config"
if is_windows():
program_files = os.environ["ProgramFiles"]
if os.path.isfile(program_files + "\\Artillery\\config"):
path = program_files + "\\Artillery\\config"
if config != '':
if is_posix():
if os.path.isfile(config):
path = config
if os.path.isfile(config):
path = config
if is_windows():
program_files = os.environ["ProgramFiles"]
if os.path.isfile(program_files + config):
path = program_files + config
This is untested, but I am almost positive this will work.
Metadata
Metadata
Assignees
Labels
No labels