I am a python newbie and am using the book Learn Python the Hard Way. Exercise 25 from the book asks us to import the python module into the python interpreter.
I used "/usr/bin/python" to invoke the interpreter:
S-MacBook-Air:~ s$ /usr/bin/python
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
But i get an error when importing the file:
>import ex26_test
>>Traceback (most recent call last):
>>File "< stdin >", line 1, in < module >
>ImportError: No module named ex26_test
the file sits on the following folder (~/documents/1Webdev/LPTHW/ex26_test.py)
How can i import the module "ex26_test" into the interpreter please?
thank you in advance! SD