D = 10 try: import xxxxx # does not exist exit(1) except ImportError: pass