It looks like sometimes a single backslash is replaced by a double backslash,
but sometimes it's not ???
See the error message below,
the first backslash is somewhere (not explicitly in my code) replaced,
but the second is not ???
Is it in general better to use double backslash in filepaths ?
thanks,
Stef Mientki
Traceback (most recent call last):
File "<string>", line 21, in ?
File "D:\data_to_tes t\Signal_WorkBe nch.py", line 118, in Write_Signal_Fi le_Ext
DataFile.Write_ Data (Data)
File "D:\data_to_tes t\Signal_WorkBe nch.py", line 95, in Write_Data
self.Write_Head er(Nchan)
File "D:\data_to_tes t\Signal_WorkBe nch.py", line 83, in Write_Header
self.datafile = open(self.filen ame,'wb')
IOError: [Errno 2] No such file or directory: 'D:\\data_to_te st\test_global. pd'
but sometimes it's not ???
See the error message below,
the first backslash is somewhere (not explicitly in my code) replaced,
but the second is not ???
Is it in general better to use double backslash in filepaths ?
thanks,
Stef Mientki
>>Write_Signal_ File_Ext (IOO, fSamp, 'D:\data_to_tes t\test_global.p d')
File "<string>", line 21, in ?
File "D:\data_to_tes t\Signal_WorkBe nch.py", line 118, in Write_Signal_Fi le_Ext
DataFile.Write_ Data (Data)
File "D:\data_to_tes t\Signal_WorkBe nch.py", line 95, in Write_Data
self.Write_Head er(Nchan)
File "D:\data_to_tes t\Signal_WorkBe nch.py", line 83, in Write_Header
self.datafile = open(self.filen ame,'wb')
IOError: [Errno 2] No such file or directory: 'D:\\data_to_te st\test_global. pd'
Comment