Skip to content

Commit 5f8ecc4

Browse files
author
Luc
committed
Move tags.json to tools
and update port in tags.json
1 parent a44c239 commit 5f8ecc4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tools/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#Replace this with a different path if you need to...
1010
base_path = os.path.join(os.getcwd(),"..","esp8266","data")
11+
tools_path = os.getcwd();
1112

1213
class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
1314
def do_GET(self):
@@ -53,7 +54,7 @@ def process_tpl(self,fn):
5354
fn = os.path.join(base_path,fn)
5455
data = open(fn).read()
5556

56-
fn_json = os.path.join(base_path,"tags.json")
57+
fn_json = os.path.join(tools_path,"tags.json")
5758
if os.path.exists(fn_json):
5859
json_dic = json.loads(open(fn_json).read())
5960
else:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"WEB_ADDRESS":"localhost",
2+
"WEB_ADDRESS":"localhost:8080",
33
"PAGE_TITLE":"Testing things..."
44
}

0 commit comments

Comments
 (0)