<div dir="ltr"><div><div><div><div><div><div>Looking ahead while coding an app that I expect will use pyqtdeploy. An app bundled by pyinstaller, and I think also by cxfreeze, can know if it is running bundled and discover the folder path of the app with code like the following:<br>

<br></div>>  if hasattr(sys, 'frozen'): # running bundled<br></div>>      my_folder = os.path.dirname(sys.executable)<br></div>>  else: # run from command line or IDE<br></div>>      my_folder = os.path.dirname(__file__)<br>

<br></div>Looking at the pyqtdeploy doc I see no similar advice, except for this sentence in [1], <br><br></div><div>> Every deployed application is able to import the pyqtdeploy module.<br></div><div>> This enables the application to determine if it is running as a<br>

</div><div>> deployed application...<br></div><div><br></div><div>It's not clear to me what the "am I bundled" test should consist of -- perhaps a try/except block around "import pyqtdeploy"?<br>

<br></div><div>Thanks for any advice,<br></div><div>  Dave Cortesi<br><br></div>[1]<a href="http://pyqt.sourceforge.net/Docs/pyqtdeploy/pyqtdeploy_module.html#module-pyqtdeploy">http://pyqt.sourceforge.net/Docs/pyqtdeploy/pyqtdeploy_module.html#module-pyqtdeploy</a><br>

<br></div>