HartyBart opened this issue on Aug 03, 2021 ยท 23 posts
HartyBart posted Mon, 09 August 2021 at 1:38 AM
On Windows, I've found a freeware BAT To EXE Converter that works and does what it says. The resulting EXE can be used to feed arguments to other EXEs and read/write files, without having to set up the arguments in Python. All that is needed in the actual Python is then:
subprocess.call([r"C:my_bat_as_an.exe"])
But how is this superior to using a plain old BAT, you ask? Well, in one important way.
It bypasses the need to have the Poser 11 user launch Poser in Administrator mode. With Poser running normally, a Python script will fail at the point of calling a Windows BAT file. But.... if the BAT is inside an EXE and called from subprocess.call, then Admin mode does not appear to be needed. The script maker is then relieved of having to tell users to 'run Poser in Admin mode' to run his script.
I know this still doesn't make the Python cross-platform. As it might if PIL could be used to do things like optimisation. Or if arguments/switches could be passed to an EXE via Python on Windows (they can't, it seems). But it is a step forward for Windows-only scripts.
Learn the Secrets of Poser 11 and Line-art Filters.