Why are my files in in my list - os module used with sys argv

Peter Otten __peter__ at web.de
Tue Apr 19 09:45:24 EDT 2016


Sayth Renshaw wrote:

> Thanks for the insight, after doing a little reading I found this post
> which uses both argparse and glob and attempts to cover the windows and
> bash expansion of wildcards,
> http://breathmintsforpenguins.blogspot.com.au/2013/09/python-crossplatform-handling-of.html

I hope you read the comment section of that page carefully.
On Linux your script's behaviour will be surprising.





More information about the Python-list mailing list