Saturday, May 14, 2016

Module 1, Introducing Python......one more reason to love constrictors....

Ok, so it's not about constrictors, but they're still cool.  Who couldn't love the Pythonwin icon?  What a great addition to my taskbar and of course toolset!
The screenshot shown represents a series of folders and subfolders created instantaneously by running a Python Script.  This is a great time saver and I wish I had known this information last semester when I painstakingly created my class folders manually! 

Our task this week was quite straightforward.  I downloaded the specified .py file from the R: drive and placed it on my S: drive.  After right-clicking and choosing edit, I reviewed the contents of the script and then closed the window.  I ran the script by double-clicking rather than choosing run from within Pythonwin.  Once I saw the words process complete in the interface window I checked my Windows Explorer and noted that the 12 folders and respective sub-folders had been created.  A great tool I will modify and use in the future.  As an extra back-up and because I cannot access eLearning (during my lunch hour) from my office PC, I use my C drive on my laptop to complete my assignments and then copy those to the S: and H: drives.  I liked the ease of the CreateModuleFolders.py script; consequently, I modified it so that it created the same directory and folder structure on my laptop’s C: drive.  This will make uploading to my S and H drives very easy.  Because I often work locally, I downloaded and installed Pythonwin on my laptop.

No comments:

Post a Comment