skeleton/__pkginfo__.py.tmpl
changeset 4252 6c4f109c2b03
parent 4214 91887e8cf50c
child 4972 7b0cd6e024e2
--- a/skeleton/__pkginfo__.py.tmpl	Mon Jan 18 19:05:08 2010 +0100
+++ b/skeleton/__pkginfo__.py.tmpl	Mon Jan 18 19:21:30 2010 +0100
@@ -21,7 +21,7 @@
 
 
 from os import listdir as _listdir
-from os.path import join, isdir, exists, dirname
+from os.path import join, isdir, exists
 from glob import glob
 
 THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname)
@@ -37,9 +37,9 @@
     [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
     ]
 # check for possible extended cube layout
-for dirname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'i18n', 'migration'):
-    if isdir(dirname):
-        data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)])
+for dname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'i18n', 'migration'):
+    if isdir(dname):
+        data_files.append([join(THIS_CUBE_DIR, dname), listdir(dname)])
 # Note: here, you'll need to add subdirectories if you want
 # them to be included in the debian package