I've inhereted a workspace that comes with large chunks of Python that are run on startup/shutdown. I'm debugging the workspace and don't want them to run while I do so (it can't run in fact; I lack the necessary modules on my local machine). What's the best way to stop them running?
The best I can think of is a parameter (DEBUGGING), that I check, and if it's set I terminate the Python with:
sys.exit()
Unfortunately, sys.exit() works by raising an exception (<SystemExit>), and FME interprets this as an ERROR level event and terminates the workspace.
So how can this be done short of deleting the python entirely? (my current solution)
Thanks,
Jonathan