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!?

>>> import shutil
>>>
>>> #variables
>>> s = shutil

This can be written as ``import shutil as s`` or maybe you could use
``from shutil import copy2`` to import the `copy2` function into the
moduls namespace.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to