I have a Python module, wrapper.py, that wraps a C DLL. The DLL lies in the same folder as the module. Therefore, I use the following code to load it:
wrapper.py
You can use os.path.dirname(__file__) to get the directory where the Python source file is located.
os.path.dirname(__file__)