Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python import file from same directory

# To call say_hello() from inside script.py, we can write in script.py:

import mymodule

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