[Checkins] SVN: grokproject/trunk/grokproject/templates.py Use
os.path.join instead a forward slash.
Maurits van Rees
m.van.rees at zestsoftware.nl
Sun May 4 06:50:39 EDT 2008
Log message for revision 86331:
Use os.path.join instead a forward slash.
Changed:
U grokproject/trunk/grokproject/templates.py
-=-
Modified: grokproject/trunk/grokproject/templates.py
===================================================================
--- grokproject/trunk/grokproject/templates.py 2008-05-04 10:44:56 UTC (rev 86330)
+++ grokproject/trunk/grokproject/templates.py 2008-05-04 10:50:39 UTC (rev 86331)
@@ -113,7 +113,7 @@
print "Downloading %s ..." % url
try:
- extraction_dir = tempfile.mkdtemp() + '/'
+ extraction_dir = tempfile.mkdtemp()
filenum, temp_tarball_name = tempfile.mkstemp()
tarball = open(temp_tarball_name, 'w')
tarball.write(urllib.urlopen(url).read())
@@ -126,7 +126,7 @@
links = []
for name in tf.getnames():
tf.extract(name, extraction_dir)
- links.append(extraction_dir + name)
+ links.append(os.path.join(extraction_dir, name))
tf.close()
result = install_grok(target_dir=eggs_dir, version=version,
More information about the Checkins
mailing list