Exemplo 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
Exemplo 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
Exemplo n.º 3
0
def get_asset_folder():
    return os.path.dirname(scene.get_image_path('emj:Airplane'))[:-10]
Exemplo 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
Exemplo 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