2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-18 11:05:12 +00:00

[minor] python3 fix and fix for #663 (#664)

This commit is contained in:
Rushabh Mehta 2018-06-21 11:45:43 +05:30 committed by GitHub
parent 4b6e47feef
commit 8d2b702888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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