pyproject
This commit is contained in:
parent
bfe4a07be8
commit
6d955dd09a
|
|
@ -4,9 +4,9 @@ config.py
|
|||
.device
|
||||
data
|
||||
data-*
|
||||
secret.py
|
||||
src/nenuscanner/secret.py
|
||||
src/nenuscanner/static/calibration-visualiser.*
|
||||
node_modules
|
||||
static/calibration-visualiser.*
|
||||
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/python
|
||||
# Edit at https://www.toptal.com/developers/gitignore?templates=python
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
[project]
|
||||
name = "nenuscanner"
|
||||
version = "0.1.0"
|
||||
dependencies = ["flask"]
|
||||
|
||||
[project.scripts]
|
||||
nenuscanner = "nenuscanner.main:main"
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
nenuscanner = ["templates/*.html", "static/*"]
|
||||
|
|
@ -52,4 +52,4 @@ def send_static(path):
|
|||
|
||||
@app.route('/data/<path:path>')
|
||||
def send_data(path):
|
||||
return send_from_directory('data', path)
|
||||
return send_from_directory(config.DATA_DIR, path)
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from . import app
|
||||
from waitress import serve
|
||||
|
||||
|
||||
def main():
|
||||
serve(app, listen='*:8000')
|
||||
Loading…
Reference in New Issue