#import os import os os.path.abspath('C:\Program Files (x86)\Hazus-MH\BIN\Hazusp.exe')
import os os.system(r'"C:\Program Files (x86)\Hazus-MH\BIN\Hazusp.exe"')
For some reason the invalid syntax error is highlighting the 6 in Python 2.6.5. Would anyone know why?Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. **************************************************************** IDLE 2.6.5 >>> #import os import os os.system(r'"C:\Program Files (x86)\Hazus-MH\BIN\Hazusp.exe"')The Python 2.6.5 at the front is what keeps getting the invalid syntax error.
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. **************************************************************** IDLE 2.6.5 >>> #import os import os os.system(r'"C:\Program Files (x86)\Hazus-MH\BIN\Hazusp.exe"')
#import os import os os.system(r'"C:\Program Files (x86)\Hazus-MH\BIN\Hazusp.exe"')
os.system(r'"C:\Program Files (x86)\Hazus-MH\BIN\Hazusp.exe"')
os.system(r"C:\Program Files (x86)\Hazus-MH\BIN\Hazusp.exe")
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.