PPTools/Ppgen/Installation/WinInstallUser1
My system
I have Windows 7. Guiguts is installed under c:\dp\guiguts-win. This is my experience of installing ppgen and setting it up for use - windymilla
Get Python 3.4
Go to https://www.python.org/download
Download "Python 3.4.1 Windows x86 MSI Installer" (https://www.python.org/ftp/python/3.4.1/python-3.4.1.msi)
Double click python-3.4.1.msi wherever you saved it
It will ask questions and install Python 3.4 (default install location is C:\Python34)
Get ppgen
Download the latest ppgen zip from PPTools/Ppgen#Program_Files
Unzip it to C:\DP\PP\Tools\ppgen
Using ppgen from within Guiguts
Setup
In Guiguts, Custom Menu, choose Setup External Operations...
In a blank slot, in the left hand box put
ppgen
and in the right hand box put
c:\python34\python C:\DP\PP\Tools\ppgen\ppgen.py -i $d$f$e
Running ppgen
To run ppgen, make sure you have saved the source file in Guiguts, then click on the ppgen button you have set up in the Custom menu.
Using ppgen without Guiguts
Setup
With your favourite editor create a file called run_ppgen.bat in a suitable folder (I chose C:\DP\PP\Tools\ppgen but it doesn't matter where it is). Enter the following text into the file and save it. Note that you may need to change the folder names depending on where you installed Python and ppgen.
c:\python34\python C:\DP\PP\Tools\ppgen\ppgen.py -i %1 pause
- In Windows Explorer, right-click your ppgen source file (which should be a .txt file). Select "Open with", then "Choose default program..."
- Make sure you un-check "Always use the selected program to open this kind of file"
- Click "Browse" and find run_ppgen.bat wherever you created it.
- Click "OK" and ppgen should run on the source file in a Command Prompt window, finishing with "Press any key to continue . . ."
- Press any key to continue :)
Running ppgen
- From now on, to run ppgen on any (.txt) source file, just right-click the file, choose "Open with", "run_ppgen.bat"
- Ppgen will run in a Command Prompt window.
- Press any key to continue and dismiss the window.
Viewing the resulting text and HTML files
To view the generated text file, go to the folder where it has been generated (where you have the ppgen source file, e.g. c:\DP\PP\MyProject) and open it as you would any other text file, e.g. with Notepad, Guiguts or another text editor.
To view the generated HTML in your browser, just double click it, then refresh your browser each time you re-run ppgen.