From 20300e1ae24aa40cd082385926a43c9bd78ea2b9 Mon Sep 17 00:00:00 2001 From: Jonathan Stoppani Date: Thu, 25 Feb 2016 18:14:49 +0100 Subject: [PATCH] Read addons dev basepath from the environment --- stack/addons-dev.pth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack/addons-dev.pth b/stack/addons-dev.pth index 24a84df..76de845 100755 --- a/stack/addons-dev.pth +++ b/stack/addons-dev.pth @@ -1 +1 @@ -import os, sys; basepath = '/app/addons-dev'; [sys.path.insert(0, i) for i in reversed([os.path.join(basepath, pkg) for pkg in next(os.walk(basepath))[1]] if os.path.exists(basepath) else []) if i not in sys.path] +import os, sys; basepath = os.environ.get('ADDONS_DEV_PATH', '/app/addons-dev'); [sys.path.insert(0, i) for i in reversed([os.path.join(basepath, pkg) for pkg in next(os.walk(basepath))[1]] if os.path.exists(basepath) else []) if i not in sys.path]