feat(ops): add environment variable to set bench root / workdir (#21872)
This commit is contained in:
parent
97eefdaa44
commit
3471685eaa
1 changed files with 3 additions and 1 deletions
|
|
@ -509,7 +509,9 @@ def get_files_path(*path, **kwargs):
|
|||
|
||||
|
||||
def get_bench_path():
|
||||
return os.path.realpath(os.path.join(os.path.dirname(frappe.__file__), "..", "..", ".."))
|
||||
return os.environ.get("FRAPPE_BENCH_ROOT") or os.path.realpath(
|
||||
os.path.join(os.path.dirname(frappe.__file__), "..", "..", "..")
|
||||
)
|
||||
|
||||
|
||||
def get_bench_id():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue