summaryrefslogtreecommitdiff
path: root/python/qpid/ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/qpid/ops.py')
-rw-r--r--python/qpid/ops.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/qpid/ops.py b/python/qpid/ops.py
index ac1819e6da..acb54aedc5 100644
--- a/python/qpid/ops.py
+++ b/python/qpid/ops.py
@@ -242,7 +242,8 @@ def load_types_from_xml(file):
return types
def load_types(file):
- pclfile = "%s.ops.pcl" % file
+ base, ext = os.path.splitext(file)
+ pclfile = "%s.pcl" % base
if os.path.exists(pclfile) and \
os.path.getmtime(pclfile) > os.path.getmtime(file):
f = open(pclfile, "rb")