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:
@@ -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'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user