Skip to content

Commit

Permalink
counts folders starting with + as valid mfile dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mobeets committed Jan 15, 2017
1 parent 6f59b26 commit 9712e80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9712e80

Please sign in to comment.