Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #python #import #file #level
ADD COMMENT
Topic
Name
3+8 =