Author: rhs
Date: Thu May 8 14:20:43 2008
New Revision: 654623
URL: http://svn.apache.org/viewvc?rev=654623&view=rev
Log:
QPID-979: switched to a more appropriate name for locating the spec
Modified:
incubator/qpid/trunk/qpid/python/qpid/spec.py
Modified: incubator/qpid/trunk/qpid/python/qpid/spec.py
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/qpid/spec.py?rev=654623&r1=654622&r2=654623&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/qpid/spec.py (original)
+++ incubator/qpid/trunk/qpid/python/qpid/spec.py Thu May 8 14:20:43 2008
@@ -33,16 +33,16 @@
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: