Skip to content

Commit

Permalink
0.1.0 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ocworld committed Sep 8, 2018
1 parent 25a2173 commit 7df125d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pyxstr2swift/xstr2swift.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def xstr2swift(strings_file_path, out_file_path,
:param overwrite_if_out_path_exist: overwrite if a outpath already exist.
:return:
'''
logging.info('xstr2swift: Try to convert (%s) to (%s)' % (strings_file_path, out_file_path))

if not os.path.exists(strings_file_path):
logging.error('xstr2swift: %s is not exist' % strings_file_path)
raise OSError(2) # ENOENT
Expand Down Expand Up @@ -142,6 +144,8 @@ def xstr2swift(strings_file_path, out_file_path,
strings_file_path, ex.errno, ex.message))
raise ex

logging.info('xstr2swift: Success to convert (%s) to (%s)' % (strings_file_path, out_file_path))


def main():
import argparse
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name='pyxstr2swift',
version='0.1.0.dev27',
version='0.1.0',
description='Python package for a xcode strings file to a swift localized string file',
long_description=readme,
author='Keunhyun Oh',
Expand Down

0 comments on commit 7df125d

Please sign in to comment.