Python Forum
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
clr issue
#7
(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
Reply


Messages In This Thread
clr issue - by tbaba83 - Mar-23-2017, 12:02 PM
RE: clr issue - by buran - Mar-23-2017, 12:16 PM
RE: clr issue - by Ofnuts - Mar-23-2017, 12:54 PM
RE: clr issue - by nilamo - Mar-23-2017, 07:50 PM
RE: clr issue - by Larz60+ - Mar-23-2017, 10:20 PM
RE: clr issue - by sparkz_alot - Mar-23-2017, 11:15 PM
RE: clr issue - by Ofnuts - Mar-24-2017, 10:09 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020