I wrote a function and saved it in a different directory. If I want to call the function in the script I'm currently at. How do I tell Python the location of this directory? I've read some article like this one http://tinyurl.com/q2mmlh3 but I really don't understand how to solve my problem. Please explain to me how to import morbo_function_lib.py into euler_04.py
the location of the script I currently working at /home/morbo/document/python/euler/euler_04.py below is the location of the function I wish to import from /home/morbo/document/python/python_script/morbo_function_lib.py
I am running Python 2.X on Ubuntu 14.04. And I am using Geany to write Python code.
I must apologize because this seem to be a repeated question on the forum but due to my limited knowledge. I can't seem to locate the proper answer to my question.
Thank you very much for the time spent