import sys sys.path.append("/usr/lib/openoffice.org/program") print("step 1") try: import uno finally: print ("step 3") print("step 2")