nikamanth
nikamanth

Reputation: 145

Calling python modules from julia

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

Answers (1)

Daniel Høegh
Daniel Høegh

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

Related Questions