mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-21 01:57:31 +00:00
debugging
This commit is contained in:
@@ -5,7 +5,7 @@ As a consequence, it also requires git >= 1.7.0 and python >= 3.4.
|
||||
import sys
|
||||
from envutil import get_proj_dir
|
||||
from excelutil import write_results_to_xlsx
|
||||
from gitutil import get_property_files_diff, get_git_root, get_commit_id, get_tree
|
||||
from gitutil import get_property_files_diff, get_git_root, get_commit_id, get_tree, list_paths
|
||||
from itemchange import convert_to_output
|
||||
from csvutil import write_results_to_csv
|
||||
import argparse
|
||||
@@ -43,7 +43,7 @@ def main():
|
||||
help='Specify the path to the properties file containing key value pairs of language mapped to '
|
||||
'the commit of when bundles for that language were most recently updated.')
|
||||
|
||||
parser.add_argument('-td', '--translation-dict', dest='translation_dict', type=bool, required=False, default=False,
|
||||
parser.add_argument('-td', '--translation-dict', dest='translation_dict', action='store_true', required=False,
|
||||
help='If this flag is specified, a dictionary mapping original prop key values to translated '
|
||||
'values. If this flag is specified, it will ')
|
||||
|
||||
@@ -71,7 +71,7 @@ def main():
|
||||
translation_dict = None
|
||||
if use_translation_dict and lang:
|
||||
translation_dict = extract_translations(
|
||||
file_iter=get_tree(repo_path, commit_1_id),
|
||||
file_iter=list_paths(get_tree(repo_path, commit_1_id)),
|
||||
orig_filename=DEFAULT_PROPS_FILENAME,
|
||||
translated_filename=get_lang_bundle_name(lang))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user