When searching for Pony packages,
ponyc checks both the installation directory (where the standard libraries reside) and any directories listed in the optional environment variable
Assuming you just placed new Pony code under a directory called
pony in your home directory here is how to inform
ponyc that the directory contains Pony code via adding it to
Edit/add the “rc” file corresponding to your chosen shell (
echo $SHELL will tell you what shell you are running). For example, if using bash, add the following to your
source ~/.bashrc to add this variable to a running session. New terminal session will automatically source
- Create folder at
- Right click on “Start” and click on “Control Panel”. Select “System and Security”, then click on “System”.
- From the menu on the left, select the “Advanced systems settings”.
- Click the “Environment Variables” button at the bottom.
- Click “New” from the “User variables” section.
PONYPATHinto the “Variable name” field.
%PONYPATH%;%USERPROFILE%\ponyinto the “Variable value” field.
- Click OK.
You can also add to
PONYPATH from the command prompt via:
setx PONYPATH %PONYPATH%;%USERPROFILE%\pony