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 <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
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'])
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()