Importing user defined modules in python from a directory
I'm trying to import a module I wrote in python that just prints out a list containing numbers. The issue I'm having is that I want to be able to import it from a separate directory but the answers I have read so far don't seem to be working for my situation. For example, given I want to import printnumbers.py from a directory in my documents folder I am supposed to implement the following: import sys sys.path.append('/home/jake/Documents') import printnumbers.py This snipit of code results in a "Import error" telling me that the specified module does not exist. I'm not exactly sure where to