From c78e90c24ab3a3b324d7ae733c9b80d8408a3ad8 Mon Sep 17 00:00:00 2001 From: Ralf Stephan Date: Mon, 4 Jan 2021 19:30:04 +0100 Subject: [PATCH] add path separator; fixes #7 --- pyshexc/parser_impl/generate_shexj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyshexc/parser_impl/generate_shexj.py b/pyshexc/parser_impl/generate_shexj.py index b71e41d..6d6b535 100644 --- a/pyshexc/parser_impl/generate_shexj.py +++ b/pyshexc/parser_impl/generate_shexj.py @@ -157,7 +157,7 @@ def generate(argv: Union[str, List[str]]) -> bool: if "://" in opts.infile: filebase = urlparse(opts.infile).path.split('/')[-1] else: - filebase = os.path.dirname(opts.infile) + str(os.path.basename(opts.infile)) + filebase = os.path.dirname(opts.infile) + '/' + str(os.path.basename(opts.infile)) filebase = filebase.rsplit('.', 1)[0] if opts.nojson: opts.jsonfile = None