equal
deleted
inserted
replaced
78 # Module Import |
78 # Module Import |
79 # ------------- |
79 # ------------- |
80 # |
80 # |
81 |
81 |
82 |
82 |
83 |
|
84 import os |
83 import os |
85 import sys |
84 import sys |
86 import re |
85 import re |
87 from builtins import str as text |
|
88 import wx |
86 import wx |
89 |
87 |
90 |
88 |
91 # ----------------------------------------------------------------------------- |
89 # ----------------------------------------------------------------------------- |
92 # Global variables |
90 # Global variables |
513 if option['po']: |
511 if option['po']: |
514 try: |
512 try: |
515 makePO(appDirPath, option['domain'], option['verbose']) |
513 makePO(appDirPath, option['domain'], option['verbose']) |
516 exit_code = 0 |
514 exit_code = 0 |
517 except IOError as e: |
515 except IOError as e: |
518 printUsage(text(e) + '\n You must write a file app.fil that contains the list of all files to parse.') |
516 printUsage(str(e) + '\n You must write a file app.fil that contains the list of all files to parse.') |
519 if option['mo']: |
517 if option['mo']: |
520 makeMO(appDirPath, option['moTarget'], option['domain'], option['verbose'], option['forceEnglish']) |
518 makeMO(appDirPath, option['moTarget'], option['domain'], option['verbose'], option['forceEnglish']) |
521 exit_code = 0 |
519 exit_code = 0 |
522 sys.exit(exit_code) |
520 sys.exit(exit_code) |
523 |
521 |