Is there a way to set a working directory in Cameyo, before executing program that is virtualised?
Example: I have packaged Python 3 with my script included. Script itself loads and saves files into currently set working directory.
By default it would be C:\Python32, but I want it to be C:\Python32\MyScriptFolder
On Windows itself I either create .bat with text like:
"
cd C:\Python32\MyScriptFolder
C:\Python32\pythonw.exe MyScript.py
or create shortcut with equivalent commands and it works.
Can something like that be made in Cameyo?
Still can't make it to work, I bypassed the problem for a while by setting directory inside Python script.
But still, how exactly should it work in Cameyo?
I imagine that I should set environment variables in Custom Events?
I put this line into On start (virtualized):
set CAMEYO_STARTINGDIR=C:\Python32\MyScriptFolder
It doesn't work.
Now if I add line
StartingDir=C:\Python32\MyScriptFolder
into VirtApp.ini all is working as it should. But that's not a solution, since it requires app already run at least once.
Packager.exe "-SetProperties:StartingDir=C:\Python32\MyScriptFolder" "C:\AppName.cameyo.exe"
(see blog)
Now it's working. Thanks!