swc-windows-installer.py: Add missing space to 'c:\ProgramFiles'
authorW. Trevor King <wking@tremily.us>
Wed, 9 Jul 2014 18:32:08 +0000 (11:32 -0700)
committerW. Trevor King <wking@tremily.us>
Wed, 9 Jul 2014 18:34:19 +0000 (11:34 -0700)
This is the default for when ProgramFiles isn't set.  Windows
operating systems should always have that environment variable set, so
the default is probably only useful when you're testing the script on
a non-Windows system.

swc-windows-installer.py

index 769da4a022143df29bf1cf580d86cba15fc2ba80..ff0423c8cab6500a4a2eaebed26f7eb6687ecac2 100755 (executable)
@@ -197,7 +197,7 @@ def create_nosetests_entry_point(python_scripts_directory):
 def get_r_bin_directory():
     """Locate the R bin directory (if R is installed
     """
-    pf = os.environ.get('ProgramFiles', r'c:\ProgramFiles')
+    pf = os.environ.get('ProgramFiles', r'c:\Program Files')
     bin_glob = os.path.join(pf, 'R', 'R-[0-9]*.[0-9]*.[0-9]*', 'bin')
     version_re = re.compile('^R-(\d+)[.](\d+)[.](\d+)$')
     paths = {}