I have to write a little python program.I have to import a file but this file will be done by the client.for exemple here is test.py:
import getoptimport sysparams=[]options remainder =getopt.getopt(sys.argv[i:], 'f:t',['test'])for opt, arg in options: if opt in ('-f','files'): files=argprint (files)import filesbut when I run it:
python test.py -f myFileTrceback (most recent call last): File "test.py", line 14, in <module> import filesModuleNotFoundError: No module named 'files'Thank in advance for your help