Collection of experimental utilities to modify existing MSTS/ORTS track shapes. Things are subject to change and might not work as expected all the time.
Install from source:
git clone https://github.com/pgroenbaek/trackshape-utils.git
cd trackshape-utils
pip install --upgrade .
Import and use the package in your Python code:
import trackshapeutils as tsu
result = tsu.some_function()
print(result)
You can run tests manually or use tox
to test across multiple Python versions.
First, install the required dependencies:
pip install pytest
Then, run tests with:
pytest
tox
allows you to test across multiple Python environments.
pip install tox
tox
This will execute tests in all specified Python versions.
The tox.ini
file should be in your project root:
[tox]
envlist = py36, py37, py38, py39, py310
[testenv]
deps = pytest
commands = pytest
Modify envlist
to match the Python versions you want to support.
This project was created by Peter Grønbæk Andersen and is licensed under GNU GPL v3.