test.pys 369 B

123456789101112131415
  1. # Testall - test core AX support.
  2. # Test "Restricted Execution" (ie, IObjectSafety).
  3. # This will fail if in a "restricted execution" environment, but
  4. # will silenty do nothing of not restricted. This same line in an MSIE
  5. # script would cause an exception.
  6. print "Importing win32api..."
  7. import win32api
  8. if 1==1:
  9. print "Hi"
  10. WScript.Echo("Hello from WScript")
  11. #fail