From d5561c37780fa29db15a076eff0c3faf126c6470 Mon Sep 17 00:00:00 2001 From: Thasso Griebel Date: Tue, 21 Jan 2014 10:19:49 +0100 Subject: [PATCH] handle script files with . in the name properly (Issue #23) --- jip/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jip/parser.py b/jip/parser.py index a6c030e..9c9368d 100644 --- a/jip/parser.py +++ b/jip/parser.py @@ -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