Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions scripts/interrogate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""

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

from panda3d.core import PandaSystem
Expand All @@ -19,7 +19,8 @@


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


Expand Down Expand Up @@ -73,7 +74,7 @@ def interrogate():
cmd += ["-oc", "interrogate_wrapper.cpp"]
cmd += ["-od", "interrogate.in"]
cmd += ["-module", MODULE_NAME]
cmd += ["-library", MODULE_NAME]
cmd += ["-library", LIB_NAME]

if PandaSystem.get_major_version() > 1 or PandaSystem.get_minor_version() > 9:
# Add nomangle option, but only for recent builds
Expand Down Expand Up @@ -120,7 +121,7 @@ def interrogate_module():
cmd += ["-import", "panda3d.core"]

cmd += ["-module", MODULE_NAME]
cmd += ["-library", MODULE_NAME]
cmd += ["-library", LIB_NAME]
cmd += ["-oc", "interrogate_module.cpp"]
cmd += ["interrogate.in"]

Expand Down