1
0
Эх сурвалжийг харах

readme: added python interface snippet

Fabian Peter Hammerle 4 жил өмнө
parent
commit
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',
+)
+```