Python: Importing an .so file

Hey all -

I'm at the tail end of my IntelliJ trial. It works pretty well for both Python and Javascript, but I'm running into an issue with a legacy project.

A barebones replication of my issue can would be with the following project structure:
/myProject/myExtension.so
/myProject/main.py

myExtension.so is compiled c with Python.h (see http://docs.python.org/2/extending/extending.html)

Main.py is simply the following:


I am able to run main.py via the command-line and IntelliJ (Shift+F10). My issue is that the line 'import myExtension' is marked with the error 'no module named myExtension'. I've tried invalidating caches and restarting (out of desperation). Is there any way I can get Intellij to recognize this c extension module?

Thanks!

---
Original message URL: http://devnet.jetbrains.net/message/5488692#5488692

1 comment
Comment actions Permalink

This is a duplicate post and should be deleted. Sorry!

0

Please sign in to leave a comment.