Up and Running with Peppy
Once peppy is installed, starting the application depends how you installed
the code.
- Installed using easy_install: (RECOMMENDED)
- If you used easy_install to install the latest version from the Python
Package Index, a python script named peppy will be installed in the
system binary directory, so simply typing peppy on the command line
will start the program.
- Downloaded from source:
- If you downloaded peppy but did not install the source, you run the
application with the command line python peppy.py from within the
peppy directory.
- Installed from the downloaded source:
- If you ran python setup.py install on the downloaded source, a python
script named peppy will be installed in the system binary directory.
- Installed a binary distribution:
- This is only applicable to Windows and Mac OS X. The install process will
leave an icon somewhere, and you can just click on that.
Command Line Use
When you start peppy from the command line, you can specify options and URLs
to load. For example, running from a source distribution, you might use a
command line like this:
python peppy.py README /tmp/file.txt http://www.flipturn.org/index.html
which tells peppy to open three URLs: the local file README in the
current directory, the file /tmp/file.txt, and the index.html file from
http://www.flipturn.org.
Options
There are many command line options available, the most useful of which are
outlined below. You can see the full list by running peppy with the --help
argument.
- -d:
- Send all debug printing to the console
- -t:
- Run in test mode – allow multiple peppy processes (see the next section)
and send all debug printing to the console
- -v:
- Run in verbose mode, which turns on a lot of debugging output. Use in
combination with -d or -t to send the output to the console
Single Peppy Process
Normally, peppy only allows a single process per user so that subsequent file
open requests (by starting peppy from the command line with an argument) will
actually be opened by the already running process. This can be disabled by
preference or by the -t option as described above.