def building_generation(): from procedural_city_generation.building_generation import main as building_generation_main import pickle try: with open(path+"/outputs/polygons.txt",'r') as f: polygons=pickle.loads(f.read()) building_generation_main.main(polygons) except IOError: print "Input could not be located. Try to run the previous program in the chain first." return 0
def building_generation(): import pickle try: with open(path + "/outputs/polygons.txt", 'r') as f: polygons = pickle.loads(f.read()) building_generation_main.main(polygons) from procedural_city_generation.additional_stuff.Singleton import Singleton Singleton("building_generation").kill() except IOError: print "Input could not be located. Try to run the previous program in the chain first." return 0 print donemessage
def building_generation(): import pickle # try: if 1==1: with open(path+"/outputs/polygons.txt",'r') as f: polygons=pickle.loads(f.read()) building_generation_main.main(polygons) Singleton("building_generation").kill() # except IOError: # print "Input could not be located. Try to run the previous program in the chain first." # return 0 print donemessage
def building_generation(): import pickle try: with open(path+"/outputs/polygons.txt",'r') as f: polygons=pickle.loads(f.read()) building_generation_main.main(polygons) from procedural_city_generation.additional_stuff.Singleton import Singleton Singleton("building_generation").kill() except IOError: print "Input could not be located. Try to run the previous program in the chain first." return 0 print donemessage
def building_generation(): building_generation_main.main() Singleton("building_generation").kill() print(donemessage)