From: Tomas Musil Date: Sun, 20 Jul 2014 14:19:38 +0000 (+0200) Subject: move pygame out of the way X-Git-Url: http://git.tomasm.cz/imago.git/commitdiff_plain/fedf00614bb6be8cea0941e431a01dc8a417e5c5?ds=inline;hp=966b2dcf6c734ffb729e2f8bab000d43586cf7eb move pygame out of the way --- diff --git a/src/imago.py b/src/imago.py index 18e7bba..9c58288 100755 --- a/src/imago.py +++ b/src/imago.py @@ -182,7 +182,7 @@ class Imsave(): if name: filename = self.saving_dir + name + im_format[0] else: - filename = self.saving_dir + "{0:0>2}".format(self.saving_num) + im_format[0] + filename = self.saving_dir + "{0:0>3}".format(self.saving_num) + im_format[0] self.saving_num += 1 if not os.path.isdir(self.saving_dir): os.makedirs(self.saving_dir) diff --git a/src/manual.py b/src/manual.py index 4030104..5a18fde 100644 --- a/src/manual.py +++ b/src/manual.py @@ -1,6 +1,5 @@ """Manual grid selection module""" -import pygame import ImageDraw from math import sqrt, acos, copysign @@ -24,6 +23,7 @@ class Screen: def find_lines(im_orig): # TODO rename, refactor, comment + import pygame im = im_orig.copy()