file/folder naming

2011-02-18 Thread ecu_jon
im trying to use wxpython to get a source file/files, then a destination folder to write them to. the file and folder picker works. the problem is, actually copying (actually shutil.copy2() ). i get an except error, as if the destination file name is not correct. looking at the print lines the

Re: file/folder naming

2011-02-18 Thread Chris Rebert
On Fri, Feb 18, 2011 at 8:29 PM, ecu_jon hayesjd...@yahoo.com wrote: im trying to use wxpython to get a source file/files, then a destination folder to write them to. the file and folder picker works. the problem is, actually copying (actually shutil.copy2() ). i get an except error Please

Re: file/folder naming

2011-02-18 Thread Steven D'Aprano
On Fri, 18 Feb 2011 20:29:13 -0800, ecu_jon wrote: im trying to use wxpython to get a source file/files, then a destination folder to write them to. the file and folder picker works. the problem is, actually copying (actually shutil.copy2() ). i get an except error, as if the destination file

Re: file/folder naming

2011-02-18 Thread ecu_jon
On Feb 18, 11:59 pm, Chris Rebert c...@rebertia.com wrote: On Fri, Feb 18, 2011 at 8:29 PM, ecu_jon hayesjd...@yahoo.com wrote: im trying to use wxpython to get a source file/files, then a destination folder to write them to. the file and folder picker works. the problem is, actually

Re: file/folder naming

2011-02-18 Thread ecu_jon
ok changed the try/except to just a file copy and got this: sourcepath is : [u'I:\\college\\spring11\\capstone-project\ \facbac-009.py'] destpath is : V:\week3 destpath is : V:\week3\facbac-009.py Traceback (most recent call last): File I:\college\spring11\capstone-project\folder.py, line 53, in

Re: file/folder naming

2011-02-18 Thread Chris Rebert
On Fri, Feb 18, 2011 at 10:13 PM, ecu_jon hayesjd...@yahoo.com wrote: ok changed the try/except to just a file copy and got this: sourcepath is : [u'I:\\college\\spring11\\capstone-project\ \facbac-009.py'] destpath is : V:\week3 destpath is : V:\week3\facbac-009.py Traceback (most recent

Re: file/folder naming

2011-02-18 Thread Steven D'Aprano
On Fri, 18 Feb 2011 22:13:42 -0800, ecu_jon wrote: ok changed the try/except to just a file copy and got this: sourcepath is : [u'I:\\college\\spring11\\capstone-project\\facbac-009.py'] Note that it's a list. shutil.copy2(sourcepath,

Re: file/folder naming

2011-02-18 Thread ecu_jon
On Feb 19, 1:38 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Fri, 18 Feb 2011 22:13:42 -0800, ecu_jon wrote: ok changed the try/except to just a file copy and got this: sourcepath is : [u'I:\\college\\spring11\\capstone-project\\facbac-009.py'] Note that it's a