If I create a new directory for a new project in Python, this directory will not be on the default python path as shown in sys.path.
In IDLE, if I work solely in files and not at the interactive prompt and save both files into this new directory I can import one into the other with no problem. So say I save the files to the directory ~/python-projects/myproject, and that the files are called main.py and mymodule.py, I can import mymodule.py into main.py by doing 'import mymodule'. All is well and good.
However, if I also have the IDLE interactive prompt open and try to do 'import mymodule', it fails. It even fails after I change the working directory using:
Listing sys.path shows me that the current directory ('.') is not on the path. This is very inconvenient since it means I can't try things out interactively. Is there any way I can get IDLE to look for files in it's current working directory?
I'm using xubuntu, by the way, and am very new to Python; so apologies if this is a naive question.
Thanks in advance