> 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
Lex

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

Reply via email to