Format code
This commit is contained in:
parent
877494749e
commit
0046f47d88
|
@ -9,8 +9,9 @@
|
||||||
import sys
|
import sys
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
|
|
||||||
def fix_path(path):
|
def fix_path(path):
|
||||||
if getattr(sys, 'frozen', False):
|
if getattr(sys, "frozen", False):
|
||||||
return os.path.join(sys._MEIPASS, "files", path)
|
return os.path.join(sys._MEIPASS, "files", path)
|
||||||
else:
|
else:
|
||||||
return path
|
return path
|
||||||
|
|
|
@ -24,5 +24,4 @@ def run(link):
|
||||||
except tk.TclError:
|
except tk.TclError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
window.mainloop()
|
window.mainloop()
|
||||||
|
|
|
@ -9,9 +9,14 @@ class GetHandler(tornado.web.RequestHandler):
|
||||||
def get(self):
|
def get(self):
|
||||||
self.write(navpoint.content.content)
|
self.write(navpoint.content.content)
|
||||||
|
|
||||||
|
|
||||||
class ImageHandler(tornado.web.RequestHandler):
|
class ImageHandler(tornado.web.RequestHandler):
|
||||||
def get(self):
|
def get(self):
|
||||||
self.write(base64.b64decode('iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAXnAAAF5wGk6LX5AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAABH1JREFUWIWl10mPVUUUB/Bf3TZCYhSjKHSrGEU04IhGhgQJuFAXTmHoOHwAJaJbJQzdIMYhxpUMfgAjNqDiQg0LB1ABA9GFAkFkQSuDQqShSdRAl4tb7716l9f4iCeppKrO8D+npnMqaJviCMzGw7gNY3BdYvbjKH7Ex/iS8E/7ts8P3EVcQxwgxjbbCeIq4tj/AzySuJJ4+gKAq22QuDytXksKw4B34iNMqTDOYAs249fU4NrUHsBMXFTR24Y5hCPtRH4Hsb8SyQBxMfGKNvSvIC5psWX9pe3zK3e2AH+fOLoNz6u2riKub+FEZy6VbUEcia80lj2iBysJsS7WpwPTMUVwLRjSr7D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q7Ksr+LGdl4Rporqdt+5SEtacjUTHZ31r+x6sChei82ze9rTOusgNfovqbtCPZmvGuy/vGsP6rQWKpSrYEUs9n8euXyVWrwhjKdYhgMFPKo87semlbj5kz7CL5uAb41lHe/JnhL5kyOcWXWHyjkSozLDGzP5u+2zvhs/JTyENbB8XR9tMEE3JUFsC2TnZj1DxSaD8WD9d5PtmfOBYXXGr7pD2Xe70JXYGYoy7KShryhsdSH7PVdhvFQ1t9ZKGu4Gs2sp95eQ2IDFPOs15ONBQ6H5hWkz3I8ns282siQ8UrNB3hTgc9xIk10YEGGsFb5nCZ9vfps1OcmVdpggj4fKtNvjXb50zvZeKFGtTSALbVktDoDPombCH+kiMYpc3jrZBQE0UTlk52f8EM6TDW3VrbFMfhZIxm9TXi+5kBnYtbS8QZ019Pxe67TYZMy47VDu3R4PAMPyeacxB9MQR6tvdGH8VZmYJ58KZ/Uj2mCFzRf2yodEi30p+kNcJQV0Zxs/CbhKOeWZF9Qf4KjMnWuaCrJehUmmSqYKqb3P+gX7bDbjhYlWU8Kpob1Le4n/N0igJZF6fpUTFwgxTHEjRVbB9NZOK9iq7L8JHFpukb/pT+6rAHjqRbgt1elz/cx+YCmjAhnla/eZ9iDY2l+tDKtP6S85x0VvW+VH5Oj/x1Aw4mR6Vs1+D++ZqfSagz7NWvHkbHKj+aJCwA+QXy7jf0ebgtaOnIxZuER3IsbcLnytgzgAHYqn/av2v2e/wswdwMLA6HnqwAAAABJRU5ErkJggg=="
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
|
|
|
@ -2,6 +2,7 @@ import navpoint.local_server
|
||||||
import navpoint.phone_server
|
import navpoint.phone_server
|
||||||
import navpoint.gui
|
import navpoint.gui
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
navpoint.local_server.run()
|
navpoint.local_server.run()
|
||||||
link = navpoint.phone_server.run()
|
link = navpoint.phone_server.run()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user