Yes, it should be: image_blob = open(image_file, 'rb').read()
Thank-you!
- Original Message -
From: bob gailer
To: Dinesh B Vadhia
Cc: tutor@python.org
Sent: Saturday, November 24, 2007 5:55 PM
Subject: Re: [Tutor] error binding parameter 1
Dinesh B Vadhia wrote:
> Hello! Can anyo
Dinesh B Vadhia wrote:
> Hello! Can anyone see what the problem with this code snippet is?
>
> Dinesh
>
>
> image_filename = str(dir_list[i])
> image_file = dir_path + image_filename
>
Hello! Can anyone see what the problem with this code snippet is?
Dinesh
image_filename = str(dir_list[i])
image_file = dir_path + image_filename
image_blob = open(image_file, '
Hi all,
I have written a daemon as part of a larger project, if it recieves a
SIGHUP signal it needs to re-read its config file. It works in that I
get 'signal HUP detected, re-reading config file' in syslog but then
the script exits ... mmm first time I have used signal catching
... thought