Answers for "python import file from same level"

0

python import file from same level

#Example of tree:

# 		main.py
# 		package/
#				asset1.py
#				asset2.py
#				asset3.py

#If you want to import asset2 into asset1 do this in asset1.py :
import .asset2
Posted by: Guest on January-06-2021

Code answers related to "python import file from same level"

Python Answers by Framework

Browse Popular Code Answers by Language