Skip to content Skip to sidebar Skip to footer

Import Python Module With Pyimport_importmoduleex For A Gedit Plugin

I'm learning Python and I try to use Python Markdown in a gedit plugin. Here's how my files are organized: ~/.gnome2/gedit/plugins/mytest.gedit-plugin ~/.gnome2/gedit/plugins/mytes

Solution 1:

If you want to use markdown without modifying it then you're going to have to put it somewhere where the Python library expects it, such as in site-packages/. Otherwise, you will have to modify it to use relative imports instead of absolute imports.


Post a Comment for "Import Python Module With Pyimport_importmoduleex For A Gedit Plugin"