From 84170b65575599b710a38f19969af369622fdbaf Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 5 Dec 2014 15:49:14 -0500 Subject: Change working directory for quickrun Set the current working directory to the provided one, so if realtive paths are used by plugins they within the quickrun working area. Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- quickrun.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/quickrun.py b/quickrun.py index ac22f6b..c39e06a 100755 --- a/quickrun.py +++ b/quickrun.py @@ -92,8 +92,9 @@ if __name__ == '__main__': penv = dict() penv.update(os.environ) - penv['PYTHONPATH'] = './' + penv['PYTHONPATH'] = os.getcwd() + exe = os.path.join(os.getcwd(), 'ipsilon/ipsilon') if args['cleanup']: shutil.rmtree(args['workdir']) @@ -103,5 +104,7 @@ if __name__ == '__main__': else: conf = os.path.join(args['workdir'], 'ipsilon.conf') - p = subprocess.Popen(['./ipsilon/ipsilon', conf], env=penv) + os.chdir(args['workdir']) + + p = subprocess.Popen([exe, conf], env=penv) p.wait() -- cgit