path modules with windll in Python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jose Cabello
    New Member
    • Sep 2011
    • 1

    path modules with windll in Python

    Hello all,

    this is the structure of my program:
    -Main Folder
    /--> SRC folder (python code)
    /--> DLL folder (dll that I use on my code)

    In one .py file in SRC folder I have this code:

    from ctypes import *
    windll.LoadLibr ary(".\..\dll\c mll14.dll")

    It loads cmll14.dll but it needs also other dlls that are in DLL folder (not in SRC, where the .py is). Then I have an error:

    "The DLL can not be started, because _other_dll can not be found."

    If I start the py file from DLL folder it works, but I don't want to mix my code with external dll files. How can I fix my problem?
Working...