summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-10-03 09:21:53 +0300
committerLars Wirzenius <liw@liw.fi>2015-10-03 09:21:53 +0300
commit1ef6d5572e0381ef138b8e3836c4a670b1d2d960 (patch)
treec0e606da99d5700558ff6759c1dfc725f4a0588b
parentdc7401082f6e04815717b3b17cc8cb877501f2b9 (diff)
downloadjt-1ef6d5572e0381ef138b8e3836c4a670b1d2d960.tar.gz
Move __version__ to new jtlib
-rwxr-xr-xjt5
-rw-r--r--jtlib/__init__.py19
-rw-r--r--jtlib/version.py19
3 files changed, 40 insertions, 3 deletions
diff --git a/jt b/jt
index 0ebf133..b9a0580 100755
--- a/jt
+++ b/jt
@@ -22,8 +22,7 @@ import shutil
import string
import time
-
-__version__ = '0.8'
+import jtlib
class DraftsDirectory(object):
@@ -445,4 +444,4 @@ class JournalTool(cliapp.Application):
raise cliapp.AppException('Must give at most one draft number')
-JournalTool(version=__version__).run()
+JournalTool(version=jtlib.__version__).run()
diff --git a/jtlib/__init__.py b/jtlib/__init__.py
new file mode 100644
index 0000000..a09c65f
--- /dev/null
+++ b/jtlib/__init__.py
@@ -0,0 +1,19 @@
+# Copyright 2015 Lars Wirzenius
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# =*= License: GPL-3+ =*=
+
+
+from .version import __version__
diff --git a/jtlib/version.py b/jtlib/version.py
new file mode 100644
index 0000000..38c28ad
--- /dev/null
+++ b/jtlib/version.py
@@ -0,0 +1,19 @@
+# Copyright 2015 Lars Wirzenius
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# =*= License: GPL-3+ =*=
+
+
+__version__ = '0.8'