Pulsonix User Forum

Technical advice from Pulsonix engineers and the wider community.

 All Forums
 Help with using Pulsonix
 Scripting
 Pythonscript - nothhing happens

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON

   Upload a file

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
poorchava Posted - 07 Jul 2023 : 00:21:10
I've been trying to get Python scripting to work.

At start trying to run a script with .pys extension would produce an error about not being able to find a scripting engine. Fair enough

I've since followed a few tutorials and I think that Python is now correctly installed in Windows as a script engine.

I can run a simple script like
"import os
print(os.getcwd())
WScript.Echo("The script name is", WScript.ScriptName)"

and execute it by calling cscript .\test.pys and it works as expected. I think this means Pythonscript has installed successfully since cscript seems to understand python language now.

If I try a simple script like Message("test") nothing happens. I am not getting any error like at the start, but simply nothing happens.

How would I go about debugging this problem? I'm not getting any error, I can't find any log file or error log. Any tips as to how to proceed with this?


1   L A T E S T    R E P L I E S    (Newest First)
lewism@pulsonix.com Posted - 07 Jul 2023 : 13:18:14
Hi,

Are you using the latest Pulsonix V12 build 8945?

If you are please email support@pulsonix.com and I can get the latest fixes to you.


Lewis