mihawai
-
Posts
1 -
Joined
-
Last visited
-
Feedback
0%
Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
importing ctypes in python script
in Community Support - Questions & Answers
Posted
i'm developing a python script that i'm injecting using a python loader during the client runtime.
i need to import the ctypes library but I have encountered many problems
first i tried to import simply from script,believing that it is included in client
from ctypes import windll
and I got the error: 'No module named _ctypes'
after I tried to link the script with the python 2.7 libraries using:
sys.path.insert(0,'C:\\Windows\\SYSTEM32\\python27.zip') sys.path.insert(0,'C:\\Python27\\DLLs') sys.path.insert(0,'C:\\Python27\\lib') sys.path.insert(0,'C:\\Python27\\lib\\plat-win') sys.path.insert(0,'C:\\Python27\\lib\\lib-tk') sys.path.insert(0,'C:\\Python27') sys.path.insert(0,'C:\\Python27\\lib\\site-packages')
but i failed again, and now i got error: R6034: An application has made an attempt to load the C runtime library incorrectly.
followed by:
I hope someone else has encountered this and can help me.
Thank you in advance