Forum Discussion

Nadav's avatar
Nadav
Contributor
6 years ago
Solved

integrating WHL Python packages

Hi, as far as i can understand from the documentation and examples here in the community - TC supports integrating external Python libraries using EGG files, which is a very old (since 2004) format....
  • Nadav's avatar
    Nadav
    6 years ago

    Just to close the loop and save time for future users with the same problem, the solution is as followed:

    1. open the WHL file with 7-zip

    2. extract the folders in it to "C:\Program Files (x86)\SmartBear\TestComplete 12\Bin\Extensions\Python\Python36\Lib\site-packages" folder.

    3. add these lines to the start of your code:

     

    import sys

    sys.path.insert(0, 'C:\Program Files (x86)\SmartBear\TestComplete 12\Bin\Extensions\Python\Python36\Lib\site-packages'

    import <your lib name (in my case: numpy)>

     

    that worked like a charm.

     

    *** credit to Yuriy from SmartBear Customer Care for the solution ***