Better path handling for excitation file.

这个提交包含在:
Craig Warren
2016-05-05 13:38:03 +01:00
父节点 5b5b833b0b
当前提交 900f3ec7f6

查看文件

@@ -232,7 +232,7 @@ def process_singlecmds(singlecmds, G):
# See if file exists at specified path and if not try input file directory # See if file exists at specified path and if not try input file directory
if not os.path.isfile(excitationfile): if not os.path.isfile(excitationfile):
excitationfile = os.path.join(G.inputdirectory, excitationfile) excitationfile = os.path.abspath(os.path.join(G.inputdirectory, excitationfile))
# Get waveform names # Get waveform names
with open(excitationfile, 'r') as f: with open(excitationfile, 'r') as f: