-#!/usr/bin/env python3
+#! /usr/bin/python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2025 Bdale Garbee <bdale@gag.com>. GPLv3+
else:
set_line_values("/dev/gpiochip0", {21: Value.ACTIVE})
-path = os.path.abspath(os.path.dirname(__file__))
+path = os.path.abspath(os.path.dirname(__file__))
+javascript_path = os.path.abspath("/usr/share/javascript")
config = {
'global' : {
'server.socket_host' : '0.0.0.0',
'/': {
'tools.staticdir.on': True,
'tools.staticdir.dir': path,
- 'tools.staticdir.index': 'index.html'
+ 'tools.staticdir.index': 'index.html',
+ },
+ '/javascript': {
+ 'tools.staticdir.on': True,
+ 'tools.staticdir.dir': javascript_path,
}
}