Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

import class from another file python

#from your main script

from folder.file import Klasa

#OR

from folder import file
k = file.Klasa()

#OR

import folder.file as myModule
k = myModule.Klasa()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #import #class #file #python
ADD COMMENT
Topic
Name
9+4 =