diff --git a/src/lib/EXIF.py b/pygtktalog/EXIF.py similarity index 100% rename from src/lib/EXIF.py rename to pygtktalog/EXIF.py diff --git a/src/lib/EXIF_light_source_and_flash.patch b/pygtktalog/EXIF_light_source_and_flash.patch similarity index 100% rename from src/lib/EXIF_light_source_and_flash.patch rename to pygtktalog/EXIF_light_source_and_flash.patch diff --git a/src/lib/misc.py b/pygtktalog/misc.py similarity index 77% rename from src/lib/misc.py rename to pygtktalog/misc.py index a620a83..542caba 100644 --- a/src/lib/misc.py +++ b/pygtktalog/misc.py @@ -3,15 +3,14 @@ Description: Misc functions used more than once in src Type: lib Author: Roman 'gryf' Dobosz, gryf73@gmail.com - Created: 2008-12-15 + Created: 2009-04-05 """ def float_to_string(float_length): """ Parse float digit into time string Arguments: - @string - width of generated image. If actual image width - exceeds this number scale is performed. + @number - digit to be converted into time. Returns HH:MM:SS formatted string """ hour = int(float_length / 3600); @@ -20,3 +19,4 @@ def float_to_string(float_length): float_length -= minutes * 60 sec = int(float_length) return "%02d:%02d:%02d" % (hour, minutes, sec) + diff --git a/src/lib/video.py b/pygtktalog/video.py similarity index 99% rename from src/lib/video.py rename to pygtktalog/video.py index a100c65..15a88cb 100644 --- a/src/lib/video.py +++ b/pygtktalog/video.py @@ -12,7 +12,7 @@ import shutil from tempfile import mkdtemp, mkstemp import math -from misc import float_to_string +from pygtktalog.misc import float_to_string class Video(object): """Class for retrive midentify script output and put it in dict.