In the python
interpreter, the current directory .
is in the path by default. When calling from Julia you need to add the directory to sys.path
explicitly.
and (I think) similarly for PythonCall where you would do
pyimport("sys").path.append(pwd())
(And, of course, you need to do this in python
as as well as soon as you want to run code that is not in the current directory or the regular path.)