Just call Deactivate() method on your project. Easiest way to access the project you are using in the script is via GetActiveProject() method.
Example:
prj=app.GetActiveProject()
app.PrintPlain(prj)
prj.Deactivate()
Our website uses persistent cookies for analysis purposes. You can accept or decline the use of persistent cookies. This consent is voluntary, not required to use this website, and can be withdrawn at any time by clicking the link at the end of the website "Change cookie settings". Please see our Privacy Policy for more information. | Imprint
Tools that are required for essential services and functions, including identity verification, service continuity and site security. These cookies cannot be disabled.
Tools that collect anonymous data about website usage and functionality. We use the information to improve our products, services and user experience.