Yeah, the very strange this is that __package__ (in that code in
Importer.cs) is done BEFORE the module is even loaded. I don't see how it
could be ever setting the __package__ attribute correctly. In CPython,
import.c is about as "confusing" as Importer.cs, so at least IP is
compatible with CPytho
Hi,
I'm writing an application in Visual Basic .NET that allows the users to
write scripts in IronPython for some specialized customization needs. Users
provide a script, a number of variable names and values, and an expression.
For example, to customize the displaying of dates, they could prov
I'd suggest adding a method in the walker which handles AssignmentStatements
and looks to see if the left-hand side is a NameExpression. If it is then you
can add it to a list of excluded variable names which you can remove from
clnVariableNames after the walk is finished.
From: ironpython-use
>From the interactive python window I can import numpy and use it just fine.
Within C# however, I am having troubles getting it to import correctly.
I'm using:
string programPath = Path.Combine(rootDir, (string)args[0]);
Dictionary options = new Dictionary();
options["Debug"] = true;
ScriptEngine