Fix problem of install.py when data-dir is specified
This commit is contained in:
parent
a9fed7c364
commit
b9a66b02d0
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ parser.add_argument("--data-dir", type=str, default=os.path.dirname(os.path.real
|
||||||
args, _ = parser.parse_known_args(sys.argv)
|
args, _ = parser.parse_known_args(sys.argv)
|
||||||
|
|
||||||
script_path = os.path.dirname(__file__)
|
script_path = os.path.dirname(__file__)
|
||||||
data_path = os.getcwd()
|
data_path = args.data_dir
|
||||||
|
|
||||||
dir_repos = "repositories"
|
dir_repos = "repositories"
|
||||||
dir_extensions = "extensions"
|
dir_extensions = "extensions"
|
||||||
|
@ -231,7 +231,7 @@ def run_extensions_installers(settings_file):
|
||||||
return
|
return
|
||||||
|
|
||||||
for dirname_extension in list_extensions(settings_file):
|
for dirname_extension in list_extensions(settings_file):
|
||||||
run_extension_installer(os.path.join(dir_extensions, dirname_extension))
|
run_extension_installer(os.path.join(data_path, dir_extensions, dirname_extension))
|
||||||
|
|
||||||
|
|
||||||
def prepare_environment():
|
def prepare_environment():
|
||||||
|
|
Loading…
Reference in a new issue