Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Read addons dev basepath from the environment #8

Open
wants to merge 1 commit into
base: support/3.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stack/addons-dev.pth
Original file line number Diff line number Diff line change
@@ -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]