summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-05-08 21:20:43 +0000
committerRafael H. Schloming <rhs@apache.org>2008-05-08 21:20:43 +0000
commit40b3ed4bed15924896496998fd6a41c35465bf8c (patch)
treee17e45297c16457ce8a7a4c444fc873a23057641 /qpid/python
parentf57945fc290b3599c0c292930189945dcc30b0aa (diff)
downloadqpid-python-40b3ed4bed15924896496998fd6a41c35465bf8c.tar.gz
QPID-979: switched to a more appropriate name for locating the spec
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@654623 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/spec.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/qpid/python/qpid/spec.py b/qpid/python/qpid/spec.py
index 152763b762..e6d914044c 100644
--- a/qpid/python/qpid/spec.py
+++ b/qpid/python/qpid/spec.py
@@ -33,16 +33,16 @@ import os, mllib, spec08, spec010
def default():
try:
- specfile = os.environ["AMQP_SPEC"]
- return specfile
+ amqp_spec = os.environ["AMQP_SPEC"]
+ return amqp_spec
except KeyError:
try:
- from AMQP_SPEC import location as specfile
- return specfile
+ from qpid_config import amqp_spec
+ return amqp_spec
except ImportError:
raise Exception("unable to locate the amqp specification, please set "
- "the AMQP_SPEC environment variable or supply a "
- "configured AMQP_SPEC.py")
+ "the AMQP_SPEC environment variable or supply "
+ "qpid_config.py on the PYTHONPATH")
def load(specfile, *errata):
for name in (specfile,) + errata: