diff LightTools/release.py @ 47:81d413160824

Added a release
author koryspansel
date Thu, 22 Sep 2011 14:38:07 -0700
parents a379bce1aeb1
children 48705dc6e568
line wrap: on
line diff
--- a/LightTools/release.py	Thu Sep 22 14:35:35 2011 -0700
+++ b/LightTools/release.py	Thu Sep 22 14:38:07 2011 -0700
@@ -51,11 +51,7 @@
     if not isdir(location):
         os.makedirs(location)
         
-    current_date = datetime.datetime.now()
-    suffix = current_date.strftime('%Y%m%d%I%M%p')
-    print suffix
-    
-    with zipfile.ZipFile(join(location, project + '.zip'), 'w') as handle:
+    with zipfile.ZipFile(join(location, project + datetime.datetime.now().strftime('%Y%m%d%I%M%p') + '.zip'), 'w') as handle:
         for filename in relative_walk(build):
             handle.write(join(build, filename), filename)