-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppressed Pylint import errors, added downloads directory argument s…
…upport to flatc_downloader and correct handling for existing deserialized JSON files.
- Loading branch information
1 parent
d3d10f8
commit 0475bd6
Showing
8 changed files
with
51 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
""" | ||
Скачивание компилятора схемы Flatbuffers при его отсутствии в рабочей директории. | ||
""" | ||
# pylint: disable=import-error | ||
import os | ||
import sys | ||
import argparse | ||
from i18n import t | ||
|
||
from main import prepare_app, execute_download # pylint: disable=import-error | ||
from main import prepare_app, execute_download | ||
|
||
if __name__ == "__main__": | ||
prepare_app("images/flatbuffers-downloader-logo-clean.png") | ||
sys.exit(execute_download(os.getcwd())) | ||
parser = argparse.ArgumentParser(prog=t("main.flatc_downloader_name"), | ||
description=t("main.flatc_downloader_desc")) | ||
parser.add_argument("downloads_directory", type=str, default=os.getcwd(), | ||
help=t("main.download_directory_arg")) | ||
args = parser.parse_args() | ||
sys.exit(execute_download(args.downloads_directory)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters