From 1595e0de940a86a7810df0e02e43838d97c0d846 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 6 Jun 2020 17:44:26 +0200 Subject: Provide nix build --- bin/test | 4 ++++ bin/todo | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 bin/test create mode 100755 bin/todo (limited to 'bin') diff --git a/bin/test b/bin/test new file mode 100755 index 0000000..cd6c0de --- /dev/null +++ b/bin/test @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -euo pipefail +cd "$(dirname $0)/.." +python -m pytest diff --git a/bin/todo b/bin/todo new file mode 100755 index 0000000..c743d0d --- /dev/null +++ b/bin/todo @@ -0,0 +1,22 @@ +#!/usr/bin/env python +import sys +from PyQt5 import QtCore, QtWidgets +import sqlite3 +import os.path + +import todo.database +import todo.db.init +import todo.gui.window +import todo.arguments +import todo.database + +args = todo.arguments.parser().parse_args() +todo.database.init(args.database if args.database != None else "database") +app = QtWidgets.QApplication(sys.argv) + +window = todo.gui.window.get() +window.show() +res = app.exec_() + +todo.database.close() +sys.exit(res) -- cgit v1.2.3