mirror of
https://github.com/derrod/legendary.git
synced 2025-01-03 04:45:28 +00:00
[core] Always use default.env
Also fixes minor typo
This commit is contained in:
parent
3f3366c632
commit
1598844bc6
|
@ -382,10 +382,10 @@ class LegendaryCore:
|
|||
|
||||
# get environment overrides from config
|
||||
env = os.environ.copy()
|
||||
if 'default.env' in self.lgd.config:
|
||||
env.update(dict(self.lgd.config['default.env']))
|
||||
if f'{app_name}.env' in self.lgd.config:
|
||||
env.update(dict(self.lgd.config[f'{app_name}.env']))
|
||||
elif 'default.env' in self.lgd.config:
|
||||
env.update(dict(self.lgd.config['default.env']))
|
||||
|
||||
if wine_pfx:
|
||||
env['WINEPREFIX'] = wine_pfx
|
||||
|
@ -861,6 +861,7 @@ class LegendaryCore:
|
|||
if updating:
|
||||
min_disk_space += analysis.biggest_file_size
|
||||
|
||||
# todo when resuming, only check remaining files
|
||||
_, _, free = shutil.disk_usage(os.path.split(install.install_path)[0])
|
||||
if free < min_disk_space:
|
||||
free_mib = free / 1024 / 1024
|
||||
|
|
Loading…
Reference in a new issue