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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user