I'm running a command line app from a Python script:

os.system(myapp)

myapp contains the path to the app and the required parameters. It works fine but it runs at, I believe, Normal priority which makes the PC sluggish. How can I start the external process at a lower priority?

Thanks.

Recommended Answers

All 2 Replies

Yes, I googled for hours and found this kind of thing.

win32process.SetPriorityClass(
                              win32process.GetCurrentProcess(),
                              win32process.IDLE_PRIORITY_CLASS
                             )

However I have no idea how to apply it hence asking for help...!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.