From da611a08f8a91c80183c1cd8254b4fd0a03cd65b Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Thu, 22 May 2014 14:42:03 +0200 Subject: [PATCH] local_run: Allow customizing where the modules are --- tools/local_run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/local_run.py b/tools/local_run.py index 4d7a77ed..86338bc7 100644 --- a/tools/local_run.py +++ b/tools/local_run.py @@ -26,8 +26,9 @@ env['WEBOOB_BACKENDS'] = os.getenv('WEBOOB_LOCAL_BACKENDS', os.getenv('WEBOOB_BACKENDS', os.path.expanduser('~/.config/weboob/backends'))) +modpath = os.getenv('WEBOOB_MODULES', os.path.join(project, 'modules')) with open(os.path.join(wd, 'sources.list'), 'w') as f: - f.write("file://%s\n" % os.path.join(project, 'modules')) + f.write("file://%s\n" % modpath) # Hide output unless there is an error p = subprocess.Popen(