summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-23 18:44:09 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-23 18:44:09 +0100
commite41cc050c8c032b59faf7c072cf24bab870c924b (patch)
treecb7980f1d7c9f6ab8a0878b45e44415bcce0aed7
parentdddc93a1eaeec4d12e9366b33b77c0876511e420 (diff)
downloaddistix-e41cc050c8c032b59faf7c072cf24bab870c924b.tar.gz
Add global constant for tickets dir name
-rw-r--r--distixlib/__init__.py1
-rw-r--r--distixlib/constants.py24
-rw-r--r--without-tests1
3 files changed, 26 insertions, 0 deletions
diff --git a/distixlib/__init__.py b/distixlib/__init__.py
index 7b03e4c..3381c51 100644
--- a/distixlib/__init__.py
+++ b/distixlib/__init__.py
@@ -22,6 +22,7 @@ version_string = '.'.join(str(x) for x in __version__)
from structurederror import StructuredError
from app import Distix
+from constants import tickets_dir_name
from metadata import Metadata
from metadata_serialiser import MetadataSerialiser
from metadata_loader import MetadataLoader, CannotLoadMetadataError
diff --git a/distixlib/constants.py b/distixlib/constants.py
new file mode 100644
index 0000000..3cf3ed6
--- /dev/null
+++ b/distixlib/constants.py
@@ -0,0 +1,24 @@
+# Copyright 2014 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+ =*=
+
+
+'''Global constants for distix.'''
+
+
+# Name of directory where tickets are stored. Relative to the
+# root of the tickets repository.
+tickets_dir_name = 'tickets'
diff --git a/without-tests b/without-tests
index b0ce9d4..7abf6e0 100644
--- a/without-tests
+++ b/without-tests
@@ -9,3 +9,4 @@ distixlib/plugins/new_plugin.py
distixlib/plugins/reply_plugin.py
distixlib/plugins/set_plugin.py
distixlib/plugins/show_plugin.py
+distixlib/constants.py