mirror of
https://github.com/ciromattia/kcc
synced 2025-12-18 12:11:46 +00:00
Tweaked glob (close #205)
This commit is contained in:
@@ -64,7 +64,10 @@ def main(argv=None):
|
|||||||
if len(args) == 0:
|
if len(args) == 0:
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
return 0
|
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:
|
if len(sources) == 0:
|
||||||
print('No matching files found.')
|
print('No matching files found.')
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user