I need to import a python file from another folder. To do that I am using the following lines of code
import sys
sys.path.insert(0, '/home/mininet/Sandbox/mapper')
from parser import read-dir
I get a syntax error because my python file name has a "-" character
from parser import read-dir
^
SyntaxError: invalid syntax
Is there any way to get around it?