1
0
mirror of https://github.com/gryf/fs-uae-wrapper.git synced 2025-12-19 04:20:23 +01:00

Fix for interpolate_variables function

This commit is contained in:
2017-01-08 15:38:59 +01:00
parent 83185011aa
commit 388a8cc835
3 changed files with 15 additions and 15 deletions

View File

@@ -145,8 +145,9 @@ def interpolate_variables(string, config_path, base=None):
"""
if '$CONFIG' in string:
string = string.replace('$CONFIG',
os.path.dirname(os.path.abspath(config_path)))
conf_path = os.path.dirname(os.path.abspath(config_path))
string = os.path.abspath(string.replace('$CONFIG', conf_path))
if '$HOME' in string:
string = string.replace('$HOME', os.path.expandvars('$HOME'))