mirror of
https://github.com/frappe/bench.git
synced 2024-11-18 11:05:12 +00:00
parent
4b6e47feef
commit
8d2b702888
@ -8,7 +8,7 @@ def execute(bench_path):
|
|||||||
|
|
||||||
|
|
||||||
if node_exec:
|
if node_exec:
|
||||||
result = subprocess.check_output([node_exec, '-v'])
|
result = subprocess.check_output([node_exec, '-v']).decode()
|
||||||
else:
|
else:
|
||||||
click.echo('''
|
click.echo('''
|
||||||
No node executable was found on your machine.
|
No node executable was found on your machine.
|
||||||
|
@ -94,6 +94,11 @@ def init(path, apps_path=None, no_procfile=False, no_backups=False,
|
|||||||
setup_backups(bench_path=path)
|
setup_backups(bench_path=path)
|
||||||
if not no_auto_update:
|
if not no_auto_update:
|
||||||
setup_auto_update(bench_path=path)
|
setup_auto_update(bench_path=path)
|
||||||
|
copy_patches_txt(bench_path)
|
||||||
|
|
||||||
|
def copy_patches_txt(bench_path):
|
||||||
|
shutil.copy(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'patches', 'patches.txt'),
|
||||||
|
os.path.join(bench_path, 'patches.txt'))
|
||||||
|
|
||||||
def clone_apps_from(bench_path, clone_from, update_app=True):
|
def clone_apps_from(bench_path, clone_from, update_app=True):
|
||||||
from .app import install_app
|
from .app import install_app
|
||||||
|
Loading…
Reference in New Issue
Block a user