mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2025-10-30 14:17:55 +00:00
add deprecation notice to parser
This commit is contained in:
2
dataParser/vendor/client/parser.py
vendored
2
dataParser/vendor/client/parser.py
vendored
@@ -326,6 +326,8 @@ def first_non_negated(matchers):
|
||||
|
||||
|
||||
class Parser:
|
||||
"""@deprecated This parser is deprecated and is not being maintained. It may not work as expected."""
|
||||
|
||||
def get_script_dir(self):
|
||||
"""Returns the directory where the script is located."""
|
||||
return os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
7
dataParser/vendor/client/parserRunner.py
vendored
7
dataParser/vendor/client/parserRunner.py
vendored
@@ -9,7 +9,14 @@ SUPPORTED_LANGUAGES = ["en", "ru", "ko", "cmn-Hant", "ja", "de", "es"]
|
||||
if __name__ == "__main__":
|
||||
logger.info("Starting parser")
|
||||
set_log_level(logging.WARNING)
|
||||
logger.critical(
|
||||
"This parser is deprecated and is not being maintained. It may not work as expected."
|
||||
)
|
||||
for lang in SUPPORTED_LANGUAGES:
|
||||
logger.info(f"Generating {lang} tables")
|
||||
parser = Parser(lang)
|
||||
parser.run()
|
||||
|
||||
logger.critical(
|
||||
"This parser is deprecated and is not being maintained. It may not work as expected."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user