#"lib": os.path.join(prefix, "lib", METADATA["shortName"]), #cbox is found via the PYTHONPATH
}
_root=os.path.dirname(__file__)
_root=os.path.abspath(os.path.join(_root,".."))
importzipfile
importtempfile
logger.info("Extracting shared library to temporary directory")
zipfilePath=get_script_dir().rstrip("/template")
assertzipfile.is_zipfile(zipfilePath),(zipfilePath)#in our tests this worked. but in lss this results not in a zip file header. linux file also says it is no zip. However, unzip works.
#Extract included .so to tmp dir, tmp dir gets garbage collected at the end of our program.
libsharedDir=tempfile.TemporaryDirectory()
#Not compiled, not installed. Running pure python directly in the source tree.
else:
_root=os.path.dirname(__file__)
@ -136,7 +127,6 @@ else:
"desktopfile":os.path.join(_root,"desktop","desktop.desktop"),#not ~/Desktop but our desktop file