python backup script

Chris Angelico rosuav at gmail.com
Mon May 6 18:51:56 EDT 2013


On Tue, May 7, 2013 at 8:40 AM, MMZ <programmer.toronto at gmail.com> wrote:
> Thanks Chris. you are right.
> So I used them directly and removed configParser. The new error is:
>
> Traceback (most recent call last):
>   File "./bbk.py", line 11, in ?
>     for database in os.popen(database_list_command).readlines():
> NameError: name 'database_list_command' is not defined

Python names are case-sensitive. If you create it with a capital D,
you can't reference it with a lower-case d. For consistency with the
rest of your code, I'd advise lowercasing it.

ChrisA



More information about the Python-list mailing list