Skip to content

Commit 3eab861

Browse files
committed
[build] Make home directory portable
Using `os.path.expanduser('~')` is more portable (in case we want to use this script on Windows some day in the future).
1 parent 949b0c0 commit 3eab861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/build-script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ def main_preset():
11671167
"build-presets.ini")
11681168
]
11691169

1170-
user_presets_file = os.path.join(os.getenv("HOME", "/"),
1170+
user_presets_file = os.path.join(os.path.expanduser("~"),
11711171
'.swift-build-presets')
11721172
if os.path.isfile(user_presets_file):
11731173
args.preset_file_names.append(user_presets_file)

0 commit comments

Comments
 (0)