On Thu, Apr 9, 2015 at 2:02 PM, Jim Mooney <cybervigila...@gmail.com> wrote: > "The safest method would probably be to do `pip freeze > requirements.txt`, > copy the requirements.txt file to the new machine, and run `pip install -r > requirements.txt" --Zach > > I looked at pip3 help (windows) and don't see a -r command. However, it > does work. How do I get the "invisible" commands ;')
Try `pip3 help install` :) > Another question. I have a set of training vids. Unfortunately, each vid is > in a subdir inside a subdir inside a subdir inside a subdir inside the > directory. Going down, down, down, up, up, up to nab them (they're short) > and remember where I am, is annoying. How do I use python to get a simple > straight list of the vids in directory order - full windows path - so I can > just copy and plug the paths into windows explorer, one at a time? Have a look at os.walk(), it will enable you to walk (hence the name) through all directories in a tree. Take a crack at it, and if you have trouble come back with some code for us to look at. You may also need os.path.abspath to get the full path. -- Zach _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor