When I run this code in python 2.7, I get this error:
Traceback (most recent call last): File \"C:\\Python26\\Lib\\site-packages\\pyutilib.subprocess-3.5.4\\
Are you using the interactive interpreter? You can use
sys.argv[0]
You should read: How do I get the path of the current executed file in Python?