Fixed auto-installer for Windows OS (bug with %PATH% customisations)

This commit is contained in:
Ivan Kravets
2014-06-21 23:04:33 +03:00
parent ea71a24e6d
commit a8112c2f37
3 changed files with 8 additions and 1 deletions

View File

@ -4,6 +4,11 @@ Release History
1.0.0 (?) 1.0.0 (?)
--------- ---------
0.3.1 (2014-06-21)
------------------
* Fixed auto-installer for Windows OS (bug with %PATH% customisations)
0.3.0 (2014-06-21) 0.3.0 (2014-06-21)
------------------ ------------------

View File

@ -35,7 +35,7 @@ class PlatformioCLI(MultiCommand):
@command(cls=PlatformioCLI) @command(cls=PlatformioCLI)
@version_option(__version__, "platformio") @version_option(__version__, prog_name="platformio")
def cli(): def cli():
pass pass

View File

@ -25,6 +25,8 @@ def fix_winpython_pathenv():
# took these lines from the native "win_add2path.py" # took these lines from the native "win_add2path.py"
pythonpath = os.path.dirname(CURINTERPRETER_PATH) pythonpath = os.path.dirname(CURINTERPRETER_PATH)
scripts = os.path.join(pythonpath, "Scripts") scripts = os.path.join(pythonpath, "Scripts")
if not os.path.isdir(scripts):
os.makedirs(scripts)
with winreg.CreateKey(winreg.HKEY_CURRENT_USER, u"Environment") as key: with winreg.CreateKey(winreg.HKEY_CURRENT_USER, u"Environment") as key:
try: try: