Re: Re: error processing variables

2005-09-09 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, el chupacabra wrote: >>Your problem is that the def statement reassignes the name "toHPU" to a >>function instead of a string. So when the code runs, you're passing a >>function object to s.copy2. > > So...how do fix it? Don't give two different objects the same name!?

Re: Re: error processing variables

2005-09-09 Thread el chupacabra
>Your problem is that the def statement reassignes the name "toHPU" to a >function instead of a string. So when the code runs, you're passing a >function object to s.copy2. So...how do fix it? >> import shutil >> >> #variables >> s = shutil >> >> toHPU = "/etc/sysconfig/network/toHPU.wifi" >