Move tags.json to tools

and update port in tags.json
This commit is contained in:
Luc 2016-01-25 12:47:17 +08:00
parent a44c239f5d
commit 5f8ecc4d2f
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ import re
#Replace this with a different path if you need to...
base_path = os.path.join(os.getcwd(),"..","esp8266","data")
tools_path = os.getcwd();
class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_GET(self):
@ -53,7 +54,7 @@ class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
fn = os.path.join(base_path,fn)
data = open(fn).read()
fn_json = os.path.join(base_path,"tags.json")
fn_json = os.path.join(tools_path,"tags.json")
if os.path.exists(fn_json):
json_dic = json.loads(open(fn_json).read())
else:

View File

@ -1,4 +1,4 @@
{
"WEB_ADDRESS":"localhost",
"WEB_ADDRESS":"localhost:8080",
"PAGE_TITLE":"Testing things..."
}