b3fb6bc34867

Reuse resource variable
[view raw] [browse files]
author Mattijs Hoitink <mattijs@monkeyandmachine.com>
date Mon, 06 Feb 2012 16:03:29 +0100
parents 95130cb61163
children 4072a819d4fd
branches/tags (none)
files d/base.py

Changes

--- a/d/base.py	Mon Feb 06 15:59:43 2012 +0100
+++ b/d/base.py	Mon Feb 06 16:03:29 2012 +0100
@@ -240,7 +240,7 @@
     footer = _get_footer()
 
     resources = j(up(__file__), 'resources')
-    for filename in os.listdir(j(up(__file__), 'resources')):
+    for filename in os.listdir(resources):
         shutil.copyfile(j(resources, filename), j(destination, '_dmedia', filename))
 
     chapters = []