For a lay user, when the user opens the dialog to open a project file, it is better if there is no need to go through folders, but access the project folder directly in the folder shown by the dialog.
It can be done by opening the project file and closing QGIS. When QGIS starts and we want to open a project file, QGIS automatically points to the last project folder opened.
I am creating portable QGIS for lay user. I want to create a code in python that will put the code in startup.py. Something like :
Set the project folder : "%~dp0DATA\QGIS2\bin"
So, when the user clicks "open project", QGIS will automatically point to the project folder.
How can I set that project folder in PyQGIS?