From 4ca0da4d7348d619142d8bf8274bba7b7d5e0994 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 30 Nov 2010 18:29:33 +0100 Subject: [PATCH] from __future__ import hindsight --- pandora/scripts/item_icon | 5 +++-- pandora/scripts/list_icon | 5 +++-- pandora/scripts/oxdb_poster | 5 +++-- pandora/scripts/padma_poster | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/pandora/scripts/item_icon b/pandora/scripts/item_icon index bb881b1d8..e3a8387bc 100755 --- a/pandora/scripts/item_icon +++ b/pandora/scripts/item_icon @@ -1,17 +1,18 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 +from __future__ import division +import os + root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) #using virtualenv's activate_this.py to reorder sys.path activate_this = os.path.join(root_dir, 'bin', 'activate_this.py') execfile(activate_this, dict(__file__=activate_this)) -from __future__ import division import Image import ImageDraw from optparse import OptionParser -import os from ox.image import drawText, wrapText import sys diff --git a/pandora/scripts/list_icon b/pandora/scripts/list_icon index be9c337c3..e763cd714 100755 --- a/pandora/scripts/list_icon +++ b/pandora/scripts/list_icon @@ -1,17 +1,18 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 +from __future__ import division +import os + root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) #using virtualenv's activate_this.py to reorder sys.path activate_this = os.path.join(root_dir, 'bin', 'activate_this.py') execfile(activate_this, dict(__file__=activate_this)) -from __future__ import division import Image import ImageDraw from optparse import OptionParser -import os from ox.image import drawText, wrapText import sys diff --git a/pandora/scripts/oxdb_poster b/pandora/scripts/oxdb_poster index d067fc2d6..59eeecb1b 100755 --- a/pandora/scripts/oxdb_poster +++ b/pandora/scripts/oxdb_poster @@ -1,17 +1,18 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 +from __future__ import division +import os + root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) #using virtualenv's activate_this.py to reorder sys.path activate_this = os.path.join(root_dir, 'bin', 'activate_this.py') execfile(activate_this, dict(__file__=activate_this)) -from __future__ import division import Image import ImageDraw from optparse import OptionParser -import os from ox.image import drawText, wrapText import sys diff --git a/pandora/scripts/padma_poster b/pandora/scripts/padma_poster index eff439954..63435499a 100755 --- a/pandora/scripts/padma_poster +++ b/pandora/scripts/padma_poster @@ -1,17 +1,18 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 +from __future__ import division +import os + root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) #using virtualenv's activate_this.py to reorder sys.path activate_this = os.path.join(root_dir, 'bin', 'activate_this.py') execfile(activate_this, dict(__file__=activate_this)) -from __future__ import division import Image import ImageDraw from optparse import OptionParser -import os from ox.image import drawText, wrapText import sys