mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
fix: Show correct src of bench source
This commit is contained in:
parent
8f2364be3c
commit
fe2d927133
@ -18,6 +18,7 @@ from bench.utils import PatchError, bench_cache_file, check_latest_version, drop
|
||||
|
||||
from_command_line = False
|
||||
change_uid_msg = "You should not run this command as root"
|
||||
src = os.path.dirname(__file__)
|
||||
|
||||
|
||||
def cli():
|
||||
|
@ -164,8 +164,8 @@ def disable_production():
|
||||
|
||||
@click.command('src', help="Prints bench source folder path, which can be used as: cd `bench src`")
|
||||
def bench_src():
|
||||
import bench
|
||||
print(os.path.dirname(bench.__path__[0]))
|
||||
from bench.cli import src
|
||||
print(os.path.dirname(src))
|
||||
|
||||
|
||||
@click.command('find', help="Finds benches recursively from location")
|
||||
|
Loading…
Reference in New Issue
Block a user