Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Post Timeline

edited tags
Link
ShadowRanger
  • 157.9k
  • 12
  • 223
  • 318
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
lang-py

AltStyle によって変換されたページ (->オリジナル) /