예제 #1
0
"""

Runs the interrogate and interrogate_module commands from Panda3D.

"""

import sys
from os import listdir, chdir
from os.path import join, isfile, isdir

from panda3d.core import PandaSystem
from common import debug_out, get_panda_bin_path, get_panda_include_path
from common import get_compiler_name, is_64_bit, try_execute, join_abs, get_script_dir

if len(sys.argv) != 3:
    debug_out("Usage: python interrogate.py <module-name> <verbose-level>")
    sys.exit(1)

# Parameters
MODULE_NAME = sys.argv[1]
VERBOSE_LVL = int(sys.argv[2])  # Assume the user did specify something valid


def check_ignore(source):
    """ This function checks if a file is on the ignore list """
    for f in ["interrogate_module.cpp", "interrogate_wrapper.cpp"]:
        if f.lower() in source.lower():
            return False
    return True

예제 #2
0
"""

Runs the interrogate and interrogate_module commands from Panda3D.

"""

import sys
from os import listdir, chdir
from os.path import join, isfile, isdir

from panda3d.core import PandaSystem
from common import debug_out, get_panda_bin_path, get_panda_include_path
from common import get_compiler_name, is_64_bit, try_execute, join_abs, get_script_dir

if len(sys.argv) != 3:
    debug_out("Usage: python interrogate.py <module-name> <verbose-level>")
    sys.exit(1)


# Parameters
MODULE_NAME = sys.argv[1]
VERBOSE_LVL = int(sys.argv[2])  # Assume the user did specify something valid


def check_ignore(source):
    """ This function checks if a file is on the ignore list """
    for f in ["interrogate_module.cpp", "interrogate_wrapper.cpp"]:
        if f.lower() in source.lower():
            return False
    return True