feat(ops): add environment variable to set bench root / workdir (#21872)

This commit is contained in:
David Arnold 2023-07-31 01:20:09 -05:00 committed by GitHub
parent 97eefdaa44
commit 3471685eaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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():