3

I'm in the ipython shell and can't import a function from other file. When I try:

from my_functions import this_function 

I got:

No module named my_functions

But if I try the save from other file it works.

Yes, I opened the shell in the same directory of my_functions file

Edit:

import sys
sys.path.append('my/path/to/module/folder')

solved the problem

0 Answers0