Sfoglia il codice sorgente

readme: added python interface snippet

Fabian Peter Hammerle 4 anni fa
parent
commit
c9a16ec2b7
1 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  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',
+)
+```