Calling python modules from julia

I am trying to call a set of python modules from myfile.py from the current directory in Julia using the @pyimport macro from the PyCall package. I'm not really sure how to use PyCall functions to do this.

+3


source to share


1 answer


The readme https://github.com/stevengj/PyCall.jl states what you can follow unshift!(PyVector(pyimport("sys")["path"]), "")

to add the current directory to the search path.



+5


source







All Articles