[pkg] attempt to fix things up after modname change
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 20 Jun 2014 15:51:15 +0200
changeset 1538 a8c09ec054db
parent 1537 712d8843b929
child 1539 35b873cea565
[pkg] attempt to fix things up after modname change Things get sort of confused with a cube named 'apycot' and a public library named 'apycotlib'. Maybe this will help...
__pkginfo__.py
--- a/__pkginfo__.py	Fri Jun 20 10:06:22 2014 +0200
+++ b/__pkginfo__.py	Fri Jun 20 15:51:15 2014 +0200
@@ -39,7 +39,7 @@
 from os.path import join, isdir, dirname
 from glob import glob
 
-THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname)
+THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', distname)
 
 def listdir(dirpath):
     return [join(dirpath, fname) for fname in _listdir(dirpath)
@@ -62,12 +62,12 @@
 if isdir(NARVALDIR): # test REQUIRED (to be importable from everywhere)
     data_files.append([join('share', 'narval', 'checkers'),
                        listdir(join(NARVALDIR, 'checkers'))])
-    data_files.append([join('share', 'narval', 'checkers', modname),
-                       listdir(join(NARVALDIR, 'checkers', modname))])
+    data_files.append([join('share', 'narval', 'checkers', distname),
+                       listdir(join(NARVALDIR, 'checkers', distname))])
     data_files.append([join('share', 'narval', 'preprocessors'),
                        listdir(join(NARVALDIR, 'preprocessors'))])
-    data_files.append([join('share', 'narval', 'preprocessors', modname),
-                       listdir(join(NARVALDIR, 'preprocessors', modname))])
+    data_files.append([join('share', 'narval', 'preprocessors', distname),
+                       listdir(join(NARVALDIR, 'preprocessors', distname))])
 if isdir(join(NARVALDIR, 'data')): # test REQUIRED (to be importable from everywhere)
     data_files.append([join('share', 'narval', 'data'),
                        listdir(join(NARVALDIR, 'data'))])