Discussion:
[Gramps-users] Gramps 4.x: How to start correctly the Windows GUI
Free Willy
2014-12-13 07:20:50 UTC
Permalink
Hello,
as "normal" Windows user without Phyton knowledge I'm confused by the
changes from 3.x to 4.x how to start Gramps.

Version 3.x provides the gramps.cmd and gramps-gui.cmd files, which I
use to change the language settings.
After a few DOS commands either python.exe or phytonw.exe with some
predefined parameters and those added to the CMD file are executed.
python.exe -EO ..\share\gramps\gramps.py %*
start pythonw.exe -EO ..\share\gramps\gramps.py %*
The default desktop icons contain
"C:\Program Files\GrampsAIO64\bin\python.exe" -EO
..\share\gramps\gramps.py
"C:\Program Files\GrampsAIO64\bin\pythonw.exe" -EO
..\share\gramps\gramps.py

Now in version 4.1.1 the default desktop icon run the commands
"C:\Program Files (x86)\GrampsAIO-4.1.1\bin\gramps.exe"
"C:\Program Files (x86)\GrampsAIO-4.1.1\bin\grampsw.exe"
without any parameters.

So what's the purpose of gramps.exe and grampsw.exe?
What are the differences copmared to the command
"C:\Program Files\GrampsAIO64\bin\pythonw.exe" -EO
..\share\gramps\gramps.py
How and when should I use these new EXE files?
So one part is to start the interactive session normally without
parameters and the other task is to call gramps with many command-line
options and parameters in batch files to create reports and backups.
Thanks in advance.
--
Kind regards,
Willy
Josip
2014-12-15 19:23:09 UTC
Permalink
Post by Free Willy
Hello,
as "normal" Windows user without Phyton knowledge I'm confused by the
changes from 3.x to 4.x how to start Gramps.
Version 3.x provides the gramps.cmd and gramps-gui.cmd files, which I
use to change the language settings.
After a few DOS commands either python.exe or phytonw.exe with some
predefined parameters and those added to the CMD file are executed.
python.exe -EO ..\share\gramps\gramps.py %*
start pythonw.exe -EO ..\share\gramps\gramps.py %*
The default desktop icons contain
"C:\Program Files\GrampsAIO64\bin\python.exe" -EO
..\share\gramps\gramps.py
"C:\Program Files\GrampsAIO64\bin\pythonw.exe" -EO
..\share\gramps\gramps.py
Now in version 4.1.1 the default desktop icon run the commands
"C:\Program Files (x86)\GrampsAIO-4.1.1\bin\gramps.exe"
"C:\Program Files (x86)\GrampsAIO-4.1.1\bin\grampsw.exe"
without any parameters.
So what's the purpose of gramps.exe and grampsw.exe?
What are the differences copmared to the command
"C:\Program Files\GrampsAIO64\bin\pythonw.exe" -EO
..\share\gramps\gramps.py
How and when should I use these new EXE files?
So one part is to start the interactive session normally without
parameters and the other task is to call gramps with many command-line
options and parameters in batch files to create reports and backups.
Thanks in advance.
Both are embedded python application that will run Gramps code.
gramps.exe in CUI mode (Console/Character User Interface) and
grampsw.exe in GUI mode (Graphical User Interface).
They are running python as before with "E" (IgnoreEnvironmentFlag) and
"O" (OptimizeFlag) flags set.

So you can think of gramps.exe as equivalent of:
C:\Program Files (x86)\GrampsAIO-4.1.1\bin\>
python.exe -EO -c "import gramps.grampsapp as app;app.main()"

see for code:
https://gramps-project.org/bugs/view.php?id=8145#c39103
--
Josip
Loading...