From 9712e80c969d0700f4257d77011d6cb76aa5347d Mon Sep 17 00:00:00 2001 From: mobeets Date: Sun, 15 Jan 2017 15:55:06 -0500 Subject: [PATCH] counts folders starting with + as valid mfile dir --- mpm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mpm.py b/mpm.py index 4839cd4..c94086b 100644 --- a/mpm.py +++ b/mpm.py @@ -57,6 +57,7 @@ def write_to_mpmfile(outdir, data, filename='mpm.json'): M_DIR_ORDER = ['bin', 'src', 'lib', 'code'] def find_mfile_dir(indir, internaldir=None, dirs_to_check=M_DIR_ORDER): mfls = glob.glob(os.path.join(indir, '*.m')) + mfls += glob.glob(os.path.join(indir, '+*')) if mfls: # .m files in main dir -- all is well if internaldir is not None: print 'WARNING: Ignoring internaldir "{0}"" because .m files were found in the base directory'.format(internaldir)