~openerp-dev/openobject-server/trunk-base-model-thu

« back to all changes in this revision

Viewing changes to openerpcommand/common.py

  • Committer: Vo Minh Thu
  • Date: 2013-05-08 09:34:27 UTC
  • mfrom: (4854.2.18 trunk)
  • Revision ID: vmt@openerp.com-20130508093427-2hr41kztzlsv14u8
[MERGE] merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        if os.path.exists(p):
43
43
            names = list(set(os.listdir(p)))
44
44
            names = filter(lambda a: not (a.startswith('.') or a in exclude), names)
 
45
            names = filter(lambda a: os.path.isdir(os.path.join(p, a)), names)
 
46
            names = filter(lambda a: os.path.exists(os.path.join(p, a, '__openerp__.py')), names)
45
47
            module_names.extend(names)
46
48
        else:
47
49
            print "The addons path `%s` doesn't exist." % p