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