Skip to main content
edited tags
Link
ShadowRanger
  • 157.7k
  • 12
  • 221
  • 315
Source Link
Taranjit Kang
  • 2.6k
  • 3
  • 24
  • 41

Python Module import 3.7

Hey I have a tree structure with an empty init.py in each directory/subdirectory. However, I get a failed to load module Utilities from my Home directory .py file.

Using python 3.7

My tree looks like the following:

 C:. ├───Tests │ ├───Checkout │ ├───GlobalFooter │ ├───GlobalHeader │ │ └───__pycache__ │ ├───Home │ │ └───__pycache__ │ ├───MyAccount │ ├───ProductDetail │ ├───ProductResults │ │ └───__pycache__ │ └───SignIn └───Utilities └───__pycache__ 

I have tried the following:

sys.path.insert(0, 'C:/Web2/TSC.WebFactory.Web2.Tests/Utilities') from Utilities.utils import addCookies, configureOptions