Explorar o código

readme: added python interface snippet

Fabian Peter Hammerle %!s(int64=4) %!d(string=hai) anos
pai
achega
c9a16ec2b7
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  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',
+)
+```