Skip to main content

New answers tagged

0 votes

Run process as admin with subprocess.run in python

I've myself built a powershell wrapper to elevate a process and get it's stdout/stderr and exit code. From there, you can run whatever command you like from an elevated powershell script. I've put all ...
Orsiris de Jong's user avatar
0 votes

How to Runas App with another admin user in Windows

I've myself built a powershell wrapper to elevate a process and get it's stdout/stderr and exit code. From there, you can run whatever elevated command you want. I've put all of this into a Python ...
Orsiris de Jong's user avatar
0 votes

Initialize interpeter before it runs main script

You could modify your script to listen to a named-pipe, if you don't want an http server, and just "do its thing" whenever new input data arrives- instead of starting a new process. To ...
jsbueno's user avatar
  • 114k
2 votes

Initialize interpeter before it runs main script

You can try multiprocessing.Pool with initializer which is built specifically for do costly init once then receive tasks from multiprocessing import Pool import runpy def init_worker():# runs once ...
Bhargav's user avatar
  • 4,966

Top 50 recent answers are included