MKS Toolkit has stopped working during python script

635 views Asked by At

When I run a python script with the following lines:

import os

host = os.environ.get('HOST')
if (host):
   print(host)

I get an MKS Toolkit for Win32 prompt that says "MKS Toolkit for Win32 has stopped working."

Without those lines, the file runs fine. This is occurring on a Windows Server 2008 R2 computer. It works fine on Windows 7. Any ideas?

0

There are 0 answers