May-18-2021, 06:00 PM
Hello,
My script could be called with either discrete filenames or a glob:
Thank you.
My script could be called with either discrete filenames or a glob:
#myscript.py file1.txt file2.txt #myscript.py *.txt for item in sys.argv[1:]: for file in glob.glob(sys.argv[1]):Before I hack something, do you know of a good way to handle both cases?
Thank you.