Skip to content

Commit

Permalink
handle script files with . in the name properly (Issue #23)
Browse files Browse the repository at this point in the history
  • Loading branch information
thasso committed Jan 21, 2014
1 parent 3948610 commit d5561c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jip/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def loads(path, script_class=None, is_pipeline=False):
if tool.name is None:
tool.name = os.path.basename(path)
try:
tool.name = tool.name[:tool.name.index('.')]
tool.name = tool.name[:tool.name.rindex('.')].replace(".", "_")
except:
pass
return tool
Expand Down

0 comments on commit d5561c3

Please sign in to comment.