[Geany-Devel] Python question

Lex Trotman elextr at xxxxx
Sat Apr 26 01:27:30 UTC 2014

> It should be in the "current" library (not sure correct term), like if it
> was C, you would call `dlopen(NULL, ...)`. I'm not familiar enough with
> ctypes to say exactly but if it had a function like `load_library()` I'd
> expect you would pass `None` where it expects a filename. Alternatively, you
> might try `geany.document.__file__` to pickup the C module's filename where
> the symbol lives, if that works.

Indeed a *very* quick (ie I didn't try anything useful, just "load"
the library) try in the REPL shows cdll.LoadLibrary(None) seems to
find something presumed to be the main program.


> Cheers,
> Matthew Brush
> _______________________________________________
> Devel mailing list
> Devel at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/devel

More information about the Devel mailing list