Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#35 - cleaner execution and error handling
Add-on commit to previous commit below. Because on Windows the tagui_python.js and tagui_python.raw files will re-appear after execution. Probably due to different behaviour of PHP / CasperJS / PhantomJS on Windows, compared to macOS and Linux. This commit performs deletion of files again in close(). --- During usage, the following temporary files will be generated in order to use TagUI - tagui_python - simple flow to initiate TagUI live mode tagui_python.raw - raw file for TagUI module expansion tagui_python.js - generated JavaScript code for TagUI tagui_local.js - TagUI for Python custom functions file tagui_python.log - log file for automation execution tagui_python.txt - to retrieve data output from TagUI When debug mode is on using debug(True), only tagui_python.log and tagui_python.txt will be retained while the rest are deleted. That essentially means that the first 4 files above do not really add value to the typical TagUI for Python user. Having them in the script folder during execution may add clutter, clunkiness and confusion. Furthermore, TagUI for Python has been downloaded over 5000 times since initial release, without users reporting issue that requires above 4 temporary files for debugging and troubleshooting. Raising issue to update code to immediately delete the first 4 files upon connecting to TagUI to remove clutter. For the last 2 files, they will be retained until close() is used, where they will be deleted if debug(False) (default).
- Loading branch information