mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-14 05:26:05 +08:00
Move tags.json to tools
and update port in tags.json
This commit is contained in:
parent
a44c239f5d
commit
5f8ecc4d2f
@ -8,6 +8,7 @@ import re
|
|||||||
|
|
||||||
#Replace this with a different path if you need to...
|
#Replace this with a different path if you need to...
|
||||||
base_path = os.path.join(os.getcwd(),"..","esp8266","data")
|
base_path = os.path.join(os.getcwd(),"..","esp8266","data")
|
||||||
|
tools_path = os.getcwd();
|
||||||
|
|
||||||
class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||||
def do_GET(self):
|
def do_GET(self):
|
||||||
@ -53,7 +54,7 @@ class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||||||
fn = os.path.join(base_path,fn)
|
fn = os.path.join(base_path,fn)
|
||||||
data = open(fn).read()
|
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):
|
if os.path.exists(fn_json):
|
||||||
json_dic = json.loads(open(fn_json).read())
|
json_dic = json.loads(open(fn_json).read())
|
||||||
else:
|
else:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"WEB_ADDRESS":"localhost",
|
"WEB_ADDRESS":"localhost:8080",
|
||||||
"PAGE_TITLE":"Testing things..."
|
"PAGE_TITLE":"Testing things..."
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user