def get_asset_folder(): try: p = os.path.dirname(scene.get_image_path('emj:Airplane'))[:-10] except: p = os.path.dirname(scene.get_image_path('Airplane')) + '/' return p
def UIImage(image_string): from scene import get_image_path UIImage = ObjCClass('UIImage') img = UIImage.imageWithContentsOfFile_(get_image_path(image_string)) return img
def get_asset_folder(): return os.path.dirname(scene.get_image_path('emj:Airplane'))[:-10]
def get_asset_folder(): try: p = os.path.dirname(scene.get_image_path('emj:Airplane'))[:-10] except: p = os.path.dirname(scene.get_image_path('Airplane'))+'/' return p