data_export_8.py 266 B

1234567891011
  1. def get_ts_info():
  2. path = "/etc/torrentserver/tsconf.conf"
  3. d = dict()
  4. if os.path.exists(path):
  5. for l in open(path):
  6. row = map(str.strip, l.split(":", 1))
  7. if len(row) == 2:
  8. d[row[0]] = row[1]
  9. return d