Skip to content

ipython notebook & script difference - loading DLLs #98

@den-run-ai

Description

@den-run-ai

Did anyone notice the difference in loading .NET dlls between notebook and normal python scripts.

This works in notebook:

import clr
clr.AddReference(r"C:\path2dll\dotnetdll")

But in regular python scripts, the sys.path has to be appended with the path to DLL:

import clr
import sys
sys.path.append(r"C:\path2dll")
clr.AddReference("dotnetdll")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions