From 94b372f47dca864c77bb9b0be70c3a62b5ecc27d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Fri, 19 Aug 2016 08:55:38 +0200 Subject: [PATCH] Tweaked glob (close #205) --- kcc/comic2ebook.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index a881e96..e42d835 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -64,7 +64,10 @@ def main(argv=None): if len(args) == 0: parser.print_help() return 0 - sources = set([source for arg in args for source in glob(arg)]) + if sys.platform.startswith('win'): + sources = set([source for arg in args for source in glob(arg)]) + else: + sources = set(args) if len(sources) == 0: print('No matching files found.') return 1