Hi,
In linux I wrote a script which uses askopenfilename which I use to copy files from one place to another. Python 2.7.6
I copied the script to a windows 10 PC and, when I had sorted out various bits of syntax it runs under idle except for one thing. Python 2.7.9
Doing a print shows the folder it's coming from has the linux syntax:
E:/Test/filetocopy instead of E:\Test\filetoc opy and I think this is why it fails.
I can manually create folders and copy files there so it isn't a permissions problem as far as I can see.
There seem to be no error messages
Any idea what's wrong please?
Cannot find out why this is happening but I have found a workaround using
and reconstructing the full path by using the filename from the above
In linux I wrote a script which uses askopenfilename which I use to copy files from one place to another. Python 2.7.6
I copied the script to a windows 10 PC and, when I had sorted out various bits of syntax it runs under idle except for one thing. Python 2.7.9
Doing a print shows the folder it's coming from has the linux syntax:
E:/Test/filetocopy instead of E:\Test\filetoc opy and I think this is why it fails.
I can manually create folders and copy files there so it isn't a permissions problem as far as I can see.
There seem to be no error messages
Any idea what's wrong please?
Cannot find out why this is happening but I have found a workaround using
Code:
(filepath, filename) = os.path.split(myname)
Comment