summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2013-10-08 13:16:01 +0200
committerFlorian Bruhin <git@the-compiler.org>2013-10-08 13:16:09 +0200
commit1d26c1cf372c4394ecd3135bcf2c2d8234b32681 (patch)
tree7f58aabdf74f0543396972563d34c110f2a424da
downloadoopsd-1d26c1cf372c4394ecd3135bcf2c2d8234b32681.tar.gz
oopsd-1d26c1cf372c4394ecd3135bcf2c2d8234b32681.zip
Initial commit
-rw-r--r--.gitignore3
-rw-r--r--__init__.py0
-rw-r--r--driver/__init__.py0
-rw-r--r--driver/optiups.py18
-rw-r--r--main.py29
5 files changed, 50 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..008af35
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+__pycache__
+*.pyc
+*.pyo
diff --git a/__init__.py b/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/__init__.py
diff --git a/driver/__init__.py b/driver/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/driver/__init__.py
diff --git a/driver/optiups.py b/driver/optiups.py
new file mode 100644
index 0000000..d90bc9b
--- /dev/null
+++ b/driver/optiups.py
@@ -0,0 +1,18 @@
+#!/usr/bin/python3
+# vim: set fileencoding=utf-8 ts=4 sts=4 sw=4 tw=80 expandtab :
+
+# Copyright (C) 2013 Florian Bruhin <me@the-compiler.org>
+
+# oopsd is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# oopsd is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with oopsd. If not, see <http://www.gnu.org/licenses/>.
+
diff --git a/main.py b/main.py
new file mode 100644
index 0000000..62d856e
--- /dev/null
+++ b/main.py
@@ -0,0 +1,29 @@
+#!/usr/bin/python3
+# vim: set fileencoding=utf-8 ts=4 sts=4 sw=4 tw=80 expandtab :
+
+# Copyright (C) 2013 Florian Bruhin <me@the-compiler.org>
+
+# oopsd is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# oopsd is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with oopsd. If not, see <http://www.gnu.org/licenses/>.
+
+import sys
+
+def main():
+ loaddriver('optiups')
+
+def loaddriver(name):
+ __import__('.'.join(['driver', name]))
+
+if __name__ == '__main__':
+ sys.exit(main())
+