Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PyModel bin directory

This directory contains the commands for PyModel.

To use PyModel, this directory must be on your execution PATH. Or, its contents must be installed in some directory that is on your execution PATH. See pymodel_paths in this directory.

There are two versions of some commands. The version without a file type is a bash script for Unix/Linux/Mac; the version with .bat is a batch file for Windows. There are no Windows versions of some commands.

The commands are:

  • pma, pmg, pmt, pmv: the four main PyModel commands. They just run the Python modules with the same names in the pymodel directory. For details, see commands.txt in the notes directory, or print their built-in help by typing pma -h etc.

  • dotpdf, dotps, dotsvg: run the Graphviz dot program to produce .pdf, .ps, or .svg graphics files from the .dot files generated by pmg

  • trun: runs test scripts, including sample demonstrations. See test.txt in the notes directory.

  • clogdiff: works with trun to execute and check regression tests. See test.txt in the notes directory.

  • wsgirunner: runs WSGI-compliant web applications on localhost, such as webapp in the WebApplication sample, or wsgidemo here.

  • pymodel_paths: assigns paths for running PyModel from these PyModel directories. To prepare to use PyModel, execute this script, or put the commands from this script into your .profile or .bashrc. These commands add PyModel/bin to the execution PATH, and add PyModel/pymodel to the PYTHONPATH. They also add the current directory to the PYTHONPATH, because the PyModel programs pmt etc. all import Python modules in the current directory that are named on the command line.
    (If you install PyModel so its commands and modules are placed in system directories, you may no longer need these commands.)

Revised Apr 2013