Compare commits
1 commit
main
...
py_module-
Author | SHA1 | Date | |
---|---|---|---|
|
229c2aa079 |
3 changed files with 7 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -22,6 +22,7 @@ coverage
|
||||||
# Dependency directory
|
# Dependency directory
|
||||||
node_modules
|
node_modules
|
||||||
bower_components
|
bower_components
|
||||||
|
py_modules
|
||||||
|
|
||||||
# Editors
|
# Editors
|
||||||
.idea
|
.idea
|
||||||
|
|
5
main.py
5
main.py
|
@ -1,3 +1,8 @@
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
# append py_modules to PYTHONPATH
|
||||||
|
sys.path.append(os.path.dirname(os.path.realpath(__file__))+"/py_modules")
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
logging.basicConfig(filename="/tmp/template.log",
|
logging.basicConfig(filename="/tmp/template.log",
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "A template to quickly create decky plugins from scratch, based on TypeScript and webpack",
|
"description": "A template to quickly create decky plugins from scratch, based on TypeScript and webpack",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"prepare": "touch requirements.txt && pip3 install --upgrade -r requirements.txt -t py_modules",
|
||||||
"build": "shx rm -rf dist && rollup -c",
|
"build": "shx rm -rf dist && rollup -c",
|
||||||
"watch": "rollup -c -w",
|
"watch": "rollup -c -w",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
|
Loading…
Reference in a new issue