Преглед изворни кода

readme: added python interface snippet

Fabian Peter Hammerle пре 4 година
родитељ
комит
c9a16ec2b7
1 измењених фајлова са 13 додато и 0 уклоњено
  1. 13 0
      README.md

+ 13 - 0
README.md

@@ -44,3 +44,16 @@ $ tooncher toon
 $ tooncher ceo
 $ tooncher --cpu-limit 70 cfo
 ```
+
+### Python Interface
+
+```python
+import pathlib
+import tooncher
+
+tooncher.launch(
+    engine_path=pathlib.Path('/somewhere/toontown-rewritten/TTREngine'),
+    username='toon',
+    password='secret',
+)
+```