Skip to content

The behavior of ScriptRuntime.ImportModule #1645

Answered by slozier
otogawakatsutoshi asked this question in Q&A
Discussion options

You must be logged in to vote

Are you missing paths to the standard library? For example:

var engine = Python.CreateEngine();
var paths = engine.GetSearchPaths();
paths.Add(@"C:\Program Files\IronPython 3.4\Lib");
paths.Add(@"C:\Program Files\IronPython 3.4\Lib\site-packages"); // change this to be where you installed youtube-dl
engine.SetSearchPaths(paths);
engine.ImportModule("youtube_dl");

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@otogawakatsutoshi
Comment options

Answer selected by otogawakatsutoshi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants