Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python use variable in another file

from OtherFile import Variable
#this assumes the 2 files are in the same folder, if not see here: 
'''
 https://stackoverflow.com/questions/4383571/importing-files-from-different-folder
'''
 
PREVIOUS NEXT
Tagged: #python #variable #file
ADD COMMENT
Topic
Name
3+9 =