matju
10 years agoSenior Member
Calling 3rd party packages from scripts written in Python
Hello,
I'm trying to import external 3rd party packages from my scripts written in Python language. Is there a way to use Python installed in different folder? I was trying to use default "site-packages" folder - I added 3rd party package to the folder, also copied whole content, installed it from commad line (by using PIP) and tried to call it from script, but TestComplete shows: "no module named requests".
I wrote in script also:
from os import sys sys.path.append("C:\Data\Python\Lib\site-packages")
and then try to import 3rd party module, but there's also no effect. I don't want to use PyUnit, so is there any way to load 3rd party package in TestComplete in scripts?
Best Regards,
matju