Skip to content

Commit 784b6dc

Browse files
committed
add bin/pymodel_paths.bat for Windows, describe in bin/README.md
1 parent d11e2cf commit 784b6dc

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

bin/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,20 @@ The commands are:
4444
(If you install PyModel so its commands and modules are placed
4545
in system directories, you may no longer need these commands.)
4646

47+
- *pymodel_paths.bat*: Windows batch file, assigns paths for running
48+
PyModel from these *PyModel* directories. To prepare to use
49+
PyModel, execute this batch file, or arrange to have it executed
50+
each time you log in. These commands add *PyModel/bin* to the
51+
execution *PATH*, and add *PyModel/pymodel* to the
52+
*PYTHONPATH*. They also add the current directory to the
53+
*PYTHONPATH*, because the PyModel programs *pmt* etc. all import
54+
Python modules in the current directory that are named on the
55+
command line. Unlike the *bash* script, this batch file also adds
56+
*PyModel/pymodel* to the execution *PATH*. (If you install
57+
PyModel so its commands and modules are placed in system
58+
directories, you may no longer need these commands.) This file
59+
also adds the *.PY* extension to *PATHEXT* so you can run the
60+
*.py* files in *PyModel/pymodel* without typing the *.py*
61+
extension on the command line.
4762

4863
Revised Apr 2013

bin/pymodel_paths.bat

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set PATH=%PATH%;%USERPROFILE%\My Documents\PyModel\bin
2+
set PATH=%PATH%;%USERPROFILE%\My Documents\PyModel\pymodel
3+
set PYTHONPATH=%PYTHONPATH%;%USERPROFILE%\My Documents\PyModel\pymodel
4+
set PYTHONPATH=.;%PYTHONPATH%
5+
set PATHEXT=%PATHEXT%;.PY
6+

0 commit comments

Comments
 (0)