Reputation: 145
I am trying to call a set of python modules from a myfile.py file from the current directory in Julia using @pyimport macro from PyCall package. I am not very sure how to use the PyCall functions to do this.
Upvotes: 5
Views: 3203
Reputation: 716
It is stated in the readme of https://github.com/stevengj/PyCall.jl that you can execute unshift!(PyVector(pyimport("sys")["path"]), "")
to add current directory to search path.
Upvotes: 6