Python - Modules and Code Organization
What is wrong with this code if it raises an ImportError?
import sys sys.path = '/my/custom/path' import mymodule
import sys sys.path = '/my/custom/path' import mymodule
sys.path must be a list of strings, but here it is assigned a single string.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions