python import subfolder

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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()