From a05a4b4d4ccfa9aacab0b378ae8c45af15dc3a0f Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Mon, 11 May 2015 22:32:31 +0200 Subject: [PATCH] Fixed image basename --- photobooth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/photobooth.py b/photobooth.py index cb759f5..5bdd031 100755 --- a/photobooth.py +++ b/photobooth.py @@ -59,6 +59,7 @@ class Images: last_picture = pictures[-1] self.counter = int(last_picture[-(self.count_width+len(self.suffix)):-len(self.suffix)]) print "Number of existing files: " + str(self.counter) + print "Saving as: " + self.basename def get(self, count): return self.basename + str(count).zfill(self.count_width) + self.suffix @@ -224,7 +225,7 @@ def main(): display = GUI_PyGame('Photobooth', display_size) camera = Camera() -images = Images("pic") +images = Images(image_basename) if __name__ == "__main__": sys.exit(main()) \ No newline at end of file