From b97987887ea3a2e3f04313686c694f9d3a237a07 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 7 Aug 2009 21:43:11 +0200 Subject: pyloadCli local switch fix --- pyLoadCli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyLoadCli.py') diff --git a/pyLoadCli.py b/pyLoadCli.py index 828ee38a3..5f030f927 100644 --- a/pyLoadCli.py +++ b/pyLoadCli.py @@ -317,7 +317,7 @@ if __name__ == "__main__": if len(sys.argv) == 2 and sys.argv[1] == "-local": config = ConfigParser.SafeConfigParser() - config.read('config') + config.read(os.path.abspath(__file__).replace("pyLoadCli.py","")+'config') address = "127.0.0.1" port = config.get("remote", "port") -- cgit v1.2.3