Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python import file from same directory

# Then if we're using Python 3.3 or higher, we can write in script.py:

import subdir.mymodule

subdir.mymodule.say_hello()
Source by csatlas.com #
 
PREVIOUS NEXT
Tagged: #python #import #file #directory
ADD COMMENT
Topic
Name
4+8 =