-->

Welcome to our Coding with python Page!!! hier you find various code with PHP, Python, AI, Cyber, etc ... Electricity, Energy, Nuclear Power

Tuesday, 3 September 2019

Importing a Python Module from another directory

You could push the directory to Python’s sys.path and then import the module:
using PyCall
push!(pyimport("sys")."path", "/path/of/directory")
mymodule = pyimport("mymodule")

No comments:

Post a Comment

Thanks for your comments

Rank

seo