2020-08-29 18:36:56 +00:00
|
|
|
#!/home/frappe/frappe-bench/env/bin/python
|
|
|
|
|
2021-12-10 08:53:00 +00:00
|
|
|
import os
|
2020-08-29 18:36:56 +00:00
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2021-12-10 08:52:40 +00:00
|
|
|
bench_dir = os.path.join(os.sep, "home", "frappe", "frappe-bench")
|
|
|
|
sites_dir = os.path.join(bench_dir, "sites")
|
2020-08-29 18:36:56 +00:00
|
|
|
bench_helper = os.path.join(
|
2021-12-10 08:52:40 +00:00
|
|
|
bench_dir,
|
|
|
|
"apps",
|
|
|
|
"frappe",
|
|
|
|
"frappe",
|
|
|
|
"utils",
|
|
|
|
"bench_helper.py",
|
2020-08-29 18:36:56 +00:00
|
|
|
)
|
|
|
|
cwd = os.getcwd()
|
|
|
|
os.chdir(sites_dir)
|
|
|
|
subprocess.check_call(
|
2021-12-10 08:52:40 +00:00
|
|
|
[sys.executable, bench_helper, "frappe"] + sys.argv[1:],
|
2020-08-29 18:36:56 +00:00
|
|
|
)
|