Skip to content

Commit

Permalink
fix: forward slash in path didnt escaped properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
mirhady-xtc committed Jun 12, 2024
1 parent 7c66aa0 commit ecdfe4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpaths.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from urllib.request import urlopen

try:
hkey = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, "SOFTWARE\WOW6432Node\Valve\Steam")
hkey = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\WOW6432Node\Valve\Steam")
except Exception as exception:
hkey = None
with open(os.path.join(os.getcwd(), 'logs\\registry.txt'), 'w') as file:
Expand All @@ -26,7 +26,7 @@

# when dota2 is not inside Steam folder then set new steam directory from 'dota2path_minify.txt
# this text file is created and set by the user in validatefiles.py during startup
if not os.path.exists(os.path.join(steam_dir, 'common\dota 2 beta\game\bin\win64\dota2.exe')):
if not os.path.exists(os.path.join(steam_dir, 'steamapps\\common\\dota 2 beta\\game\\bin\\win64\\dota2.exe')):
path_file = os.path.join(os.getcwd(), 'dota2path_minify.txt')

# make sure the text file exists
Expand Down

0 comments on commit ecdfe4a

Please sign in to comment.