Forum Discussion

ahughes's avatar
ahughes
Regular Visitor
9 years ago
Solved

Can't import files in Python

I'm simply trying to use an import statement to import some constants in a python test script and its not working. the file I'm trying to import is in my project and in the same directory as the file...
  • TanyaYatskovska's avatar
    9 years ago

    Hi Ahughes,

     

    As far as I know, Evgeny from our TestComplete Customer Care Team has replied to your request with a possible solution. Please check if adding import sys to the script helps you import your *.py file.