Solve the path problem in eclipse pydev
If you copy a bundle of python codes into eclipse, usually the pydev can not find the paths. In this case, you have 2 two ways to deal with this problem.
- right click the folder -> pydev -> Set as Source Folder (add to python path)
- insert the path with code: sys.path.insert(0, “your file path”) or sys.path.append(“your file path”)
for example: sys.path.insert(0, “../smartphone”)