Commit e97d87d4 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

missing imports / correct listdir

branch : stable
parent 48a13d7e4c01
......@@ -26,8 +26,15 @@ __depends__ = {'cubicweb': '>= 3.6.0'}
# packages ###
from os import listdir
from os.path import join
from os import listdir as _listdir
from os.path import join, isdir
from glob import glob
def listdir(dirpath):
return [join(dirpath, fname) for fname in _listdir(dirpath)
if fname[0] != '.' and not fname.endswith('.pyc')
and not fname.endswith('~')]
CUBES_DIR = join('share', 'cubicweb', 'cubes')
THIS_CUBE_DIR = join(CUBES_DIR, modname)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment