File: static_files.py

package info (click to toggle)
python-aiohttp 3.5.1-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,648 kB
  • sloc: python: 36,948; ansic: 15,734; makefile: 365; sh: 83
file content (9 lines) | stat: -rw-r--r-- 159 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import pathlib

from aiohttp import web


app = web.Application()
app.router.add_static('/', pathlib.Path(__file__).parent, show_index=True)

web.run_app(app)