chillavanilla / TeeworldsEconMod

A python script which communicates with teeworlds server log as input and econ connection as output.
MIT License
3 stars 2 forks source link

some config sanitization might help #41

Closed jxsl13 closed 4 years ago

jxsl13 commented 4 years ago

I'm getting this constructed line, I think trailing slashes should kinda be sanitized with python

config:

sh_tw_path=/home/jxsl13.tw/teeworlds/build/
py_file_database=stats/vanilla_ctf_stats.db

Kinda disturbed by that double slash there.

...
[TEM] No stats/ folder found in your teeworlds directory
[TEM] should be at: /home/jxsl13.tw/teeworlds/build//stats
...

Maybe remove trailing slash from every configuration line that expects a directory and add it manually yourself when constructing the final path.