Mar-24-2017, 10:09 PM
(Mar-23-2017, 11:15 PM)sparkz_alot Wrote: According to the docs, http://pythonnet.sourceforge.net/readme.html#importing make sure your path to the assemblies are in the sys.path
Quote:Python for .NET uses the PYTHONPATH (sys.path) to look for assemblies to load, in addition to the usual application base and the GAC. To ensure that you can implicitly import an assembly, put the directory containing the assembly in sys.path.
According to the OP the problem isn't in the
import
but when the code tries to use whatever was imported as clr
.
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net