English | 简体中文
Pywikibot and other scripts for zh ONI wiki (and other wikis sometimes).
- Make sure to run with Python 3.7+ as some new features are used. (e.g. Insertion-order preservation nature of dict)
You can configure the script with these environment variables:
Name | Notes | Default |
---|---|---|
BNI_ONI_ROOT |
Root path of the ONI game | C:\Program Files (x86)\Steam\steamapps\common\OxygenNotIncluded |
BNI_PO_HANT |
Root path of the zh-hant po file | C:\Users\%USERNAME%\Documents\Klei\OxygenNotIncluded\mods\Steam\2906930548\strings.po |
Make sure to configure environment after entering virtual environment, or the Pywikibot package may not work as intended.
python3 -m venv venv --clear # create virtual environment (recommended)
source venv/bin/activate # activate virtual environment
pip3 install -r requirements.txt # install dependencies
# Preparing necessary data
python3 game_update.py
# processing data
deactivate # deactivate virtural environment