Commit 3ac7fd07 authored by Luca Greco's avatar Luca Greco
Browse files

Bug 1816989 - Remove from InspectJSONSchema.py manual addition of the file...

Bug 1816989 - Remove from InspectJSONSchema.py manual addition of the file module_dir to sys.path.append. r=willdurand

It seems that the changes introduced in python 3.3 (see https://peps.python.org/pep-0420/) made the previous
workaround not needed anymore.

Differential Revision: https://phabricator.services.mozilla.com/D170391
parent 2a883bbb
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
# You can obtain one at http://mozilla.org/MPL/2.0/.

import argparse
import os
import sys

# Sanity check (ensure the script has been executed through `mach python`).
@@ -20,11 +19,6 @@ except ModuleNotFoundError or AttributeError:
    )
    sys.exit(1)

# Add the current directory to the module path (needed to be able to load
# GenerateWebIDLBindings without having to make it recognized as a python package).
module_dir = os.path.dirname(__file__)
sys.path.append(module_dir)

from GenerateWebIDLBindings import load_and_parse_JSONSchema, set_logging_level