Installation

Source Code

The source code for TerraRoad can be downloaded from https://github.com/abe-mart/TerraRoad.

Installation

To use TerraRoad, you'll need Python installed on your computer. On Windows, Python can be obtained easily through the Microsoft Store, or for Windows, Mac, and Linux from python.org. Make sure to check 'Add Python to Path' if installing manually.
Once Python is installed, open the command prompt (not IDLE) and use the Python package manager pip to install the packages needed to run TerraRoad.
1
pip install pysimplegui imageio numpy scipy scikit-image svgpathtools
Copied!
NOTE: The ImageIO library needs an additional plugin called freeimage to read EXR files. I'll try to add an automatic check into the code for that. Until then, you can run this code in a Python interpreter to download the plugin:
1
import imageio
2
imageio.plugins.freeimage.download()
Copied!
Now you are ready to download TerraRoad. TerraRoad is contained in a single Python script, TerraRoad.py, which you can download by clicking the green 'Code' button at the GitHub site, and then 'Download ZIP'. Unzip the folder, and navigate to the unzipped folder in your command prompt. Launch TerraRoad by running:
1
python TerraRoad.py
Copied!
You can also run TerraRoad through IDLE or your favorite Python IDE.
​
Copy link