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 :
Of course, with the command :
import os import sys sys.path.append(os.getcwd()+"\launch") import launch as lI'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 :
os.popen(os.getcwd()+"\launch")I can open my file, so it's not a problem of wrong path.