I am trying to execute this:
os.execv(sys.executable, ['python'] + sys.argv)
The result I am getting:
C:\Program Files\Python310\python.exe: can't find '__main__' module in 'c:\\Users\\user\\OneDrive\\Рабочий'
As you can see, the path after the 'module in' words is improper. I printed sys.argv and got:
c:/Users/user/OneDrive/Рабочий стол/myfolder/file.py