1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 09:46:25 +00:00

Tweaked glob (close #205)

This commit is contained in:
Paweł Jastrzębski
2016-08-19 08:55:38 +02:00
parent b978adcc7c
commit 94b372f47d

View File

@@ -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