diff --git a/locale/fr/LC_MESSAGES/tifoto.mo b/locale/fr/LC_MESSAGES/tifoto.mo index 08db6db..4b321e2 100644 Binary files a/locale/fr/LC_MESSAGES/tifoto.mo and b/locale/fr/LC_MESSAGES/tifoto.mo differ diff --git a/locale/fr/LC_MESSAGES/tifoto.po b/locale/fr/LC_MESSAGES/tifoto.po index 326e196..4cf8095 100644 --- a/locale/fr/LC_MESSAGES/tifoto.po +++ b/locale/fr/LC_MESSAGES/tifoto.po @@ -1,13 +1,13 @@ -# tifoto v1.0.0 +# tifoto v1.0.2 # (C) 2017 Jérémie Roquet # Released under the MIT license # https://github.com/Arkanosis/tifoto/ # msgid "" msgstr "" -"Project-Id-Version: 1.0.0\n" -"POT-Creation-Date: 2017-04-20 22:14+0200\n" -"PO-Revision-Date: 2017-04-20 22:14+0200\n" +"Project-Id-Version: 1.0.2\n" +"POT-Creation-Date: 2017-06-08 02:46+0200\n" +"PO-Revision-Date: 2017-06-08 02:46+0200\n" "Last-Translator: Jérémie Roquet \n" "Language-Team: Jérémie Roquet \n" "MIME-Version: 1.0\n" diff --git a/tifoto b/tifoto index 58677b4..5eeee50 100755 --- a/tifoto +++ b/tifoto @@ -1,11 +1,11 @@ #! /usr/bin/env python3 -# tifoto v1.0.1 +# tifoto v1.0.2 # (C) 2017 Jérémie Roquet # Released under the MIT license # https://github.com/Arkanosis/tifoto/ -__version__ = '1.0.0' +__version__ = '1.0.2' import gettext import os @@ -64,10 +64,13 @@ def show_message(message): def resize_photos(args): photos = [] for arg in args: - for dirpath, __, filenames in os.walk(arg, followlinks=True): - for filename in filenames: - if jpeg_file.search(filename): - photos.append((dirpath, filename)) + if os.path.isdir(arg): + for dirpath, __, filenames in os.walk(arg, followlinks=True): + for filename in filenames: + if jpeg_file.search(filename): + photos.append((dirpath, filename)) + elif jpeg_file.search(arg): + photos.append(os.path.split(arg)) progress = Progress(len(photos)) os.makedirs(tifoto_dir, exist_ok=True) diff --git a/tifoto.pot b/tifoto.pot index 4141ee8..a53b089 100644 --- a/tifoto.pot +++ b/tifoto.pot @@ -1,13 +1,13 @@ -# tifoto v1.0.0 +# tifoto v1.0.2 # (C) 2017 Jérémie Roquet # Released under the MIT license # https://github.com/Arkanosis/tifoto/ ## msgid "" msgstr "" -"Project-Id-Version: 1.0.0\n" -"POT-Creation-Date: 2017-04-20 22:14+0200\n" -"PO-Revision-Date: 2017-04-20 22:14+0200\n" +"Project-Id-Version: 1.0.2\n" +"POT-Creation-Date: 2017-06-08 02:46+0200\n" +"PO-Revision-Date: 2017-06-08 02:46+0200\n" "Last-Translator: Jérémie Roquet \n" "Language-Team: Jérémie Roquet \n" "MIME-Version: 1.0\n"