Hi,
I have problem with autostart python scripts in Windows10:
I made BAT file and put it to autostart folder,
BAT file contens:
@echo off
"C:\Windows\py.exe" "C:\Users\OEM\Desktop\program\main_v4.py"
pause
Python script (main_v4.py) run another scripts:
os.system('python connect_to_hortex_base_palette.py')
but when i rebot win I recive error:
python: can't open file 'connect_to_hortex_base_palette.py': [Errno 2] No such file or directory
_________________________________________________________________________________________________
But when I Run main_v4.py by pressing file by click mouse scripts work well.
as I saw when I click mouse the script, I see c:\windows\py.exe run the script, but when I rebot win I see c:\windows\system32\cmd.exe
My request is:
how i can run script correctly in background without windows(for example cmd window)?
*I know pythonw.exe run scripts in backround but have the same problem as described above.
I have problem with autostart python scripts in Windows10:
I made BAT file and put it to autostart folder,
BAT file contens:
@echo off
"C:\Windows\py.exe" "C:\Users\OEM\Desktop\program\main_v4.py"
pause
Python script (main_v4.py) run another scripts:
os.system('python connect_to_hortex_base_palette.py')
but when i rebot win I recive error:
python: can't open file 'connect_to_hortex_base_palette.py': [Errno 2] No such file or directory
_________________________________________________________________________________________________
But when I Run main_v4.py by pressing file by click mouse scripts work well.
as I saw when I click mouse the script, I see c:\windows\py.exe run the script, but when I rebot win I see c:\windows\system32\cmd.exe
My request is:
how i can run script correctly in background without windows(for example cmd window)?
*I know pythonw.exe run scripts in backround but have the same problem as described above.