AnsweredAssumed Answered

Executing Hazus Software through Python Script

Question asked by merebears on Mar 11, 2014
Latest reply on Mar 12, 2014 by hua17
I am trying to write a script that runs Hazus Software but am having a hard time getting started and keep getting an invalid syntax error.  The problem is that I'm not sure if I should also be importing the arcpy module as well since it is linked to ArcGIS or if I should just import os/subprocess.  The other thing that keeps throwing me off is I keep reading numerous solutions to executing a program in general so I don't even know what I should be importing.  Here is what I have right now:

#import os import os os.path.abspath('C:\Program Files (x86)\Hazus-MH\BIN\Hazusp.exe')

I'm still learning a lot when it comes to python so if anybody has an idea how I should start this I would greatly appreciate the input.