summaryrefslogtreecommitdiff
path: root/qpid/python/examples/xml-exchange/xml_producer.py
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-05-15 21:34:10 +0000
committerAlan Conway <aconway@apache.org>2008-05-15 21:34:10 +0000
commitca3bc30a4ff5fbd2504b2868eea60e647b16b2d8 (patch)
tree0e842261b0acd9b67ea4e3cb478e60bf975314b0 /qpid/python/examples/xml-exchange/xml_producer.py
parent91d75bcf41126fa56a782e4672c9ac5752ec2ded (diff)
downloadqpid-python-ca3bc30a4ff5fbd2504b2868eea60e647b16b2d8.tar.gz
- Enable python tets and examples in make rpmbuild.
- Remove hard-coded amqp.xml paths from python examples. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@656853 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/examples/xml-exchange/xml_producer.py')
-rwxr-xr-xqpid/python/examples/xml-exchange/xml_producer.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/qpid/python/examples/xml-exchange/xml_producer.py b/qpid/python/examples/xml-exchange/xml_producer.py
index 9e609ed132..435045b0fa 100755
--- a/qpid/python/examples/xml-exchange/xml_producer.py
+++ b/qpid/python/examples/xml-exchange/xml_producer.py
@@ -42,7 +42,6 @@ host="127.0.0.1"
port=5672
user="guest"
password="guest"
-amqp_spec="/usr/share/amqp/amqp.0-10.xml"
# If an alternate host or port has been specified, use that instead
# (this is used in our unit tests)
@@ -55,14 +54,9 @@ if len(sys.argv) > 1 :
if len(sys.argv) > 2 :
port=int(sys.argv[2])
-try:
- amqp_spec = os.environ["AMQP_SPEC"]
-except KeyError:
- amqp_spec="/usr/share/amqp/amqp.0-10.xml"
-
# Create a connection.
socket = connect(host, port)
-connection = Connection (sock=socket, spec=qpid.spec.load(amqp_spec))
+connection = Connection (sock=socket)
connection.start()
session = connection.session(str(uuid4()))