player_path=StringProperty(name="Player Path",description="The path to the player to use",default=default_player_path)
filepath=StringProperty(name="Output Path",description="Where to save the runtime",default="")
copy_python=BoolProperty(name="Copy Python",description="Copy bundle Python with the runtime",default=True)
overwrite_lib=BoolProperty(name="Overwrite 'lib' folder",description="Overwrites the lib folder (if one exists) with the bundled Python lib folder",default=False)
player_path=StringProperty(
name="Player Path",
description="The path to the player to use",
default=default_player_path,
subtype='FILE_PATH',
)
filepath=StringProperty(
name="Output Path",
description="Where to save the runtime",
subtype='FILE_PATH',
)
copy_python=BoolProperty(
name="Copy Python",
description="Copy bundle Python with the runtime",
default=True,
)
overwrite_lib=BoolProperty(
name="Overwrite 'lib' folder",
description="Overwrites the lib folder (if one exists) with the bundled Python lib folder",
default=False,
)
# Only Windows has dlls to copy
ifext=='.exe':
copy_dlls=BoolProperty(name="Copy DLLs",description="Copy all needed DLLs with the runtime",default=True)
copy_dlls=BoolProperty(
name="Copy DLLs",
description="Copy all needed DLLs with the runtime",
default=True,
)
else:
copy_dlls=False
...
...
@@ -190,7 +220,9 @@ class SaveAsRuntime(bpy.types.Operator):
self.properties.filepath,
self.properties.copy_python,
self.properties.overwrite_lib,
self.copy_dlls)
self.copy_dlls,
self.report,
)
print("Finished in %.4fs"%(time.clock()-start_time))