python import subfolder

Solutions on MaxInterview for python import subfolder by the best coders in the world

showing results for - "python import subfolder"
Adriana
15 Nov 2019
1# import :
2from subFolder import pyPackage
3# then use it like :
4pyPackage.whatEverMethod()
5
6## OR ##
7
8from subFolder.pyPackage import whatEverMethod
9# then use it like :
10whatEverMethod()