summaryrefslogtreecommitdiff
path: root/python/qpid/ops.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-02-18 21:29:59 +0000
committerRafael H. Schloming <rhs@apache.org>2010-02-18 21:29:59 +0000
commitd8048acc7b376aabebdbaa0ed30ef65132cba4c8 (patch)
tree1e9ce7742256bea0daf362f6fe732eb6992edf17 /python/qpid/ops.py
parenta7646b55d006c7ac1adaf9f673671384bfa4ebb0 (diff)
downloadqpid-python-d8048acc7b376aabebdbaa0ed30ef65132cba4c8.tar.gz
remove extra dots from filenames so as not to confuse windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@911596 13f79535-47bb-0310-9956-ffa450edef68
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")