Skip to content

Commit

Permalink
Updating version.py to be a little more robust about identifying .scr…
Browse files Browse the repository at this point in the history
…ipt vs .py files.
  • Loading branch information
bendmorris committed Apr 17, 2012
1 parent bfdf646 commit 15524ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
m = md5()
m.update(''.join(getsourcelines(module)[0]))
scripts.append(','.join([module.__name__ + ('.script'
if os.path.isfile(module.__file__[:-4] + '.script')
if os.path.isfile('.'.join(module.__file__.split('.')[:-1]) + '.script')
else '.py'),
m.hexdigest()]))

Expand Down

0 comments on commit 15524ee

Please sign in to comment.