forked from CastroFidel/winehelper
simplifying the definition of the path to dependencies.sh
This commit is contained in:
@@ -42,14 +42,10 @@ class DependencyManager:
|
|||||||
|
|
||||||
def _get_dependencies_path(self):
|
def _get_dependencies_path(self):
|
||||||
"""Определяет и возвращает путь к скрипту dependencies.sh."""
|
"""Определяет и возвращает путь к скрипту dependencies.sh."""
|
||||||
if Var.DATA_PATH:
|
if not Var.DATA_PATH:
|
||||||
base_path = Var.DATA_PATH
|
|
||||||
elif Var.RUN_SCRIPT and os.path.exists(Var.RUN_SCRIPT):
|
|
||||||
base_path = os.path.dirname(Var.RUN_SCRIPT)
|
|
||||||
else:
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return os.path.join(base_path, 'dependencies.sh')
|
return os.path.join(Var.DATA_PATH, 'dependencies.sh')
|
||||||
|
|
||||||
def _calculate_file_hash(self):
|
def _calculate_file_hash(self):
|
||||||
"""Вычисляет хэш SHA256 файла зависимостей."""
|
"""Вычисляет хэш SHA256 файла зависимостей."""
|
||||||
|
Reference in New Issue
Block a user