aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2013-04-22 11:04:57 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2013-04-22 11:04:57 -0400
commitbe635e65fa948cf2fe7aca341b3dc6c2479e0d15 (patch)
tree09dc7c6ebb6096619a0962909d04b065419ff2c6
parent1f2b4af32761563219eb963bf48da9ebb3a6f6e3 (diff)
downloadipsutils-be635e65fa948cf2fe7aca341b3dc6c2479e0d15.tar.gz
Initial commit; Dynamically find metadata.tpl
-rw-r--r--ips/tpl/__init__.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/ips/tpl/__init__.py b/ips/tpl/__init__.py
new file mode 100644
index 0000000..ea5bd8e
--- /dev/null
+++ b/ips/tpl/__init__.py
@@ -0,0 +1,20 @@
+# This file is part of ipsutils.
+
+# ipsutils 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.
+#
+# ipsutils 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 ipsutils. If not, see <http://www.gnu.org/licenses/>.
+
+# I am not sure if this is proper, but needs to happen for metadata templating
+# to function properly
+import os
+metadata = os.path.normpath(os.path.join(os.path.dirname(__file__), 'metadata.tpl'))
+del os