import sys
sys.path.append("") # fixes import issues
from your_file import your_class
# OR
from your_dir.your_file import your_class
# also, make sure there is an empty __init__.py file in each directory
class myClass:
def __init__(self,val):
self.val=val
def getVal(self):
return self.val