Skip to content
Snippets Groups Projects
Commit 0568cf7e authored by Dirk Loss's avatar Dirk Loss
Browse files

Added default locations for PDF/PS viewers on Windows

This shall make it more convenient to use pdfdump()
and psdump() and automatically launch a viewer:

Default viewer for pdfdump() is Acrobat reader.
Please change your PATH variable to include the directory
where AcroRd.exe is placed.

Default viewer for psdump() is GSview. The gsview32.exe
executable is automatically searched for in GSview's
default installation directory:
%ProgramFiles%\Ghostgum\gsview
If it is not found, put the directory on your PATH.

You can manually set the paths to the executables by
changing the conf.prog.pdfreader and conf.prog.psreader
configuration parameters.
parent 60f945fd
No related branches found
No related tags found
No related merge requests found
...@@ -54,8 +54,8 @@ def win_find_exe(filename, installsubdir=None, env="ProgramFiles"): ...@@ -54,8 +54,8 @@ def win_find_exe(filename, installsubdir=None, env="ProgramFiles"):
class WinProgPath(ConfClass): class WinProgPath(ConfClass):
_default = "<System default>" _default = "<System default>"
# We try some magic to find the appropriate executables # We try some magic to find the appropriate executables
pdfreader = _default pdfreader = win_find_exe("AcroRd32")
psreader = _default psreader = win_find_exe("gsview32.exe", "Ghostgum/gsview")
dot = win_find_exe("dot", "ATT/Graphviz/bin") dot = win_find_exe("dot", "ATT/Graphviz/bin")
tcpdump = win_find_exe("windump") tcpdump = win_find_exe("windump")
tcpreplay = win_find_exe("tcpreplay") tcpreplay = win_find_exe("tcpreplay")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment