Skip to content

Commit

Permalink
Try using expandvars from os.path
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Mar 31, 2023
1 parent c7f5339 commit 18568ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions energyplus_regressions/configure.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from os import chmod, stat
from os import chmod, path, stat
from pathlib import Path
from platform import system
from site import USER_BASE
Expand Down Expand Up @@ -50,7 +50,7 @@ def configure() -> int:
desktop_value, _ = QueryValueEx(key, 'Desktop')
CloseKey(key)
print(f"{desktop_value=}")
desktop = Path(desktop_value)
desktop = Path(path.expandvars(desktop_value))
print(f"{desktop=}")
path_link = desktop / link_name
print(f"{path_link=}")
Expand Down

0 comments on commit 18568ad

Please sign in to comment.