Skip to content

Commit

Permalink
Construct the path correctly. refs #4531
Browse files Browse the repository at this point in the history
Use os.path.join() instead of simply adding the strings.
  • Loading branch information
stuartcampbell committed Feb 1, 2012
1 parent a3f21a4 commit 127c7bd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from reducer import ReductionStep
from mantidsimple import *
import string
import os

class LoadData(ReductionStep):
"""Handles the loading of the data for Indirect instruments. The summing
Expand Down Expand Up @@ -842,7 +843,7 @@ def _group_fixed(self, workspace):
xml += "</group>\n"
xml += "</detector-grouping>\n"

xfile = mtd.getConfigProperty('defaultsave.directory') + 'fixedGrp.xml'
xfile = os.path.join(mtd.getConfigProperty('defaultsave.directory'), 'fixedGrp.xml')
file = open(xfile, 'w')
file.write(xml)
file.close()
Expand Down

0 comments on commit 127c7bd

Please sign in to comment.