Esempio n. 1
0
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
Esempio n. 2
0
def UIImage(image_string):
    from scene import get_image_path
    UIImage = ObjCClass('UIImage')
    img = UIImage.imageWithContentsOfFile_(get_image_path(image_string))
    return img
Esempio n. 3
0
def get_asset_folder():
    return os.path.dirname(scene.get_image_path('emj:Airplane'))[:-10]
Esempio n. 4
0
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
Esempio n. 5
0
def UIImage(image_string):
	from scene import get_image_path
	UIImage = ObjCClass('UIImage')
	img = UIImage.imageWithContentsOfFile_(get_image_path(image_string))
	return img