[Checkins] SVN: grokproject/trunk/ Fix bug https://bugs.launchpad.net/grok/+bug/315223
Maurits van Rees
m.van.rees at zestsoftware.nl
Fri Feb 27 13:28:36 EST 2009
Log message for revision 97358:
Fix bug https://bugs.launchpad.net/grok/+bug/315223
The eggs-directory path that we put in ~/.buildout/default.cfg is
now a shortened version on Windows (8.3 DOS style).
Changed:
U grokproject/trunk/CHANGES.txt
U grokproject/trunk/grokproject/utils.py
-=-
Modified: grokproject/trunk/CHANGES.txt
===================================================================
--- grokproject/trunk/CHANGES.txt 2009-02-27 17:40:48 UTC (rev 97357)
+++ grokproject/trunk/CHANGES.txt 2009-02-27 18:28:35 UTC (rev 97358)
@@ -4,6 +4,10 @@
1.0a3 (unreleased)
------------------
+* Fix bug https://bugs.launchpad.net/grok/+bug/315223
+ The eggs-directory path that we put in ~/.buildout/default.cfg is
+ now a shortened version on Windows (8.3 DOS style).
+
* Fix bug https://bugs.launchpad.net/grok/+bug/160196 The initial
password is now stored SHA1 encoded.
Modified: grokproject/trunk/grokproject/utils.py
===================================================================
--- grokproject/trunk/grokproject/utils.py 2009-02-27 17:40:48 UTC (rev 97357)
+++ grokproject/trunk/grokproject/utils.py 2009-02-27 18:28:35 UTC (rev 97358)
@@ -39,6 +39,11 @@
eggs_dir = os.path.join(default_dir, 'eggs')
if not os.path.isdir(eggs_dir):
os.mkdir(eggs_dir)
+ 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)
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