Skip to content

Commit

Permalink
added default path (../../bmpm)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislit committed May 25, 2015
1 parent 665dbed commit b10f650
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helpers/bm_php2py.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ def pythonize(line, fn='', subdir='gen'):
else:
return ''

bmdir = sys.argv[1].rstrip('/') + '/'
if len(sys.argv) > 1:
bmdir = sys.argv[1].rstrip('/') + '/'
else:
bmdir = '../../bmpm/'

outfilename = '../abydos/_bmdata.py'
outfile = codecs.open(outfilename, 'w', 'utf-8')
Expand Down

0 comments on commit b10f650

Please sign in to comment.