mirror of
https://github.com/rsms/inter.git
synced 2024-12-25 00:21:40 +03:00
Serve symlink patch: fix error exception to serve lab if symlink exists (#130)
* fix error exception to serve lab if symlink exists * ignore personal VS Code workspace settings
This commit is contained in:
parent
38a830d0a9
commit
de4072d7b7
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,6 +12,7 @@ _*.ignore
|
|||||||
*~
|
*~
|
||||||
.DS_Store
|
.DS_Store
|
||||||
nohup.out
|
nohup.out
|
||||||
|
.vscode/
|
||||||
|
|
||||||
build
|
build
|
||||||
/_*
|
/_*
|
||||||
|
@ -26,7 +26,7 @@ class HTTPServer(http.server.HTTPServer):
|
|||||||
labdir = abspath(dirname(__file__))
|
labdir = abspath(dirname(__file__))
|
||||||
try:
|
try:
|
||||||
os.symlink('../../build/fonts', pjoin(labdir, 'fonts'))
|
os.symlink('../../build/fonts', pjoin(labdir, 'fonts'))
|
||||||
except FileExistsError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
addr = ("localhost", 3003)
|
addr = ("localhost", 3003)
|
||||||
|
Loading…
Reference in New Issue
Block a user