[Checkins] SVN: grokproject/trunk/grokproject/utils.py Get rid of win32api requirement for win32 users. It looks like

Uli Fouquet uli at gnufix.de
Sat Feb 20 07:42:58 EST 2010


Log message for revision 109172:
  Get rid of win32api requirement for win32 users. It looks like
  buildout correctly handles paths containing whitespaces in
  default.cfg, if the backslashes are doubled. That at least worked
  on a standard Windows XP.
  

Changed:
  U   grokproject/trunk/grokproject/utils.py

-=-
Modified: grokproject/trunk/grokproject/utils.py
===================================================================
--- grokproject/trunk/grokproject/utils.py	2010-02-20 09:00:19 UTC (rev 109171)
+++ grokproject/trunk/grokproject/utils.py	2010-02-20 12:42:57 UTC (rev 109172)
@@ -46,8 +46,8 @@
     if sys.platform == 'win32':
         # Fix for paths with spaces on Windows.
         # See https://bugs.launchpad.net/grok/+bug/315223
-        import win32api
-        eggs_dir = win32api.GetShortPathName(eggs_dir)
+        # See https://bugs.launchpad.net/grok/+bug/524000
+        eggs_dir = eggs_dir.replace('\\', '\\'*2)
     default_cfg = os.path.join(HOME, '.buildout', 'default.cfg')
     if not os.path.isfile(default_cfg):
         config_file = open(default_cfg, 'w')



More information about the checkins mailing list