I am somewhat new to Python, having made several scripts, but not too many serious programs. I am trying to understand where to put the functions/scripts (as well as any modules I create in the future) I have written so that they can be accessed by other programs. I've found two different Python help pages on the topic (here and here), which ultimately seem to indicate that files need to be either in the folder (or maybe some sub-folder, I couldn't quite understand the jargon) containing Python executable or in the the current directory. From what I could tell, the default current directory is set with the PYTHONPATH environment variable. However, after setting PYTHONPATH as shown in the screenshot below . . .
I opened up a new Python shell and checked to see what the current directory was. Below is the output that was produced.
>>> import os
>>> os.getcwd()
'C:\\Program Files\\Python33'
>>>
Could someone please explain what I am doing wrong and how I can make it (if such a thing is possible) so that I have access to any given script I have written which I have placed in some particular folder which I choose to designate my primary working directory (or some sub-folder of such directory)? I do not want to be working from the C:/Program Files/Python33
directory.
If there is any more information needed, I would be happy to provide it. Just let me know.