Planet Press and Python Scripting

Planet Press can be a very powerful tool. Later on, I’ll put up a post that some dealers might find pleasantly surprising in uses for Planet Press you might not have realized. For now, though, a quick note on using Python in Planet Press.

Objectif Lune makes mention that Python is one of four supported scripting languages, the others being Perl, JavaScript, and Visual Basic Script. Those options being a little horrifying to me, I’ll stick with Python. OL mentions that to use Python, you have to install PyWin. What they failed to mention, and something I wasted an embarrassing amount of time on, is that there is another step to it. For it to work, you will need to run the pywin32_postinstall.py file that you should find in the pywin32 folder.

Maybe I didn’t look hard enough, but OL does not say anything about it. I stumbled across it later on Pywin’s GitHub page: “Note that if you want to use pywin32 for ‘system wide’ features, such as registering COM objects or implementing Windows Services, then you must run the following command from an elevated command prompt: python Scripts/pywin32_postinstall.py -install“.

As ever, I remain

Leave a Reply

Your email address will not be published.