The solution is following:
1. Get the current path by using "os.getcwd()"
import os os.getcwd()
2. Add the current path to the system by using "sys.path"
import sys import os # sys.path => will retrive the list of the system paths. sys.path.add(os.getcwd())
Now, the current path will be added to the system path.
No comments:
Post a Comment