L
L
lololololo2015-03-18 01:36:25
Python
lololololo, 2015-03-18 01:36:25

"Open with..." python program?

For "Open with ..." you need an executable without parameters, you won't be able to specify a .py file. Who can advise or write a launcher for a python program, the bottom line is this. Let's say the launcher is named prog.py.exe, when it starts it launches prog.py and passes all the command line parameters to it? Desirable version for .py (with co-console) and .pyw (without)
Attention! It's not about py2exe and co!
mukizu advised the batch file. It works, but for the gui program, a window with a batch file appears and remains. If you add start to the batch file, the window blinks, which is better, but still not 100% comme il faut.
Now, for some reason, only one file is transferred, even if several are selected. batch file:
start D:\WINDOWS\pyw.exe program.pyw %*

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mukizu, 2015-03-18
@mukizu

What is the problem with writing a simple batch file?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question