Jun-14-2022, 10:04 AM
Hello here ! I'm learning how to code starting with Python, and I'm facing a problem trying to import a file as a module. With this code :
I'm getting the issue "Import "launch" could not be resolved", and if I execute the script, the error "ModuleNotFoundError : No module named 'launch'". I'm struggling with this for a few hours now, and I'm quite desperate, so thanks in advance for your answers !
Of course, with the command :
I can open my file, so it's not a problem of wrong path.
1 2 3 4 |
import os import sys sys.path.append(os.getcwd() + "\launch" ) import launch as l |
Of course, with the command :
1 |
os.popen(os.getcwd() + "\launch" ) |