change config file(cdn_list, station_name.txt) load manage

This commit is contained in:
ttdevs
2019-01-04 11:00:10 +08:00
parent fa85652feb
commit cf904073c4
2 changed files with 6 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
# -*- coding=utf-8 -*-
import datetime
import random
import os
import socket
import sys
import threading
@@ -118,7 +119,8 @@ class select:
:param station:
:return:
"""
result = open('station_name.txt')
path = os.path.join(os.path.dirname(__file__), '../station_name.txt')
result = open(path)
info = result.read().split('=')[1].strip("'").split('@')
del info[0]
station_name = {}