This command returns whether script resources are currently being captured (i.e. when publishing to an exe). This can be useful when you need to manually add publish resources.
# Make sure certain file loaders included when publishing to exe
if viz.res.isCapturing():
viz.res.addPublishFileLoader('dae')
viz.res.addPublishFileLoader('fbx')