mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Add missing file, update .gitignores
This commit is contained in:
parent
d9342043b0
commit
08fbfb1874
7
contrib/.gitignore
vendored
7
contrib/.gitignore
vendored
@ -1,4 +1,9 @@
|
||||
*.pyc
|
||||
*.pyo
|
||||
/__init__.py
|
||||
/built/
|
||||
# These are files that are generated within the source tree by the
|
||||
# ppremake system.
|
||||
Makefile
|
||||
pp.dep
|
||||
/built/
|
||||
Opt?-*
|
||||
|
1
direct/.gitignore
vendored
1
direct/.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
*.pyc
|
||||
*.pyo
|
||||
/__init__.py
|
||||
# These are files that are generated within the source tree by the
|
||||
# ppremake system.
|
||||
|
28
direct/src/extensions_native/core_extensions.py
Normal file
28
direct/src/extensions_native/core_extensions.py
Normal file
@ -0,0 +1,28 @@
|
||||
import sys
|
||||
|
||||
main_dir = Filename()
|
||||
|
||||
if sys.argv and sys.argv[0]:
|
||||
main_dir = Filename.from_os_specific(sys.argv[0])
|
||||
|
||||
if main_dir.empty():
|
||||
# We must be running in the Python interpreter directly, so return the CWD.
|
||||
main_dir = ExecutionEnvironment.get_cwd()
|
||||
else:
|
||||
main_dir.make_absolute()
|
||||
main_dir = Filename(main_dir.get_dirname())
|
||||
ExecutionEnvironment.shadow_environment_variable('MAIN_DIR', main_dir.to_os_specific())
|
||||
del sys, main_dir
|
||||
|
||||
|
||||
def Dtool_funcToMethod(func, cls, method_name=None):
|
||||
"""Adds func to class so it is an accessible method; use method_name to specify the name to be used for calling the method.
|
||||
The new method is accessible to any instance immediately."""
|
||||
#if sys.version_info < (3, 0):
|
||||
# func.im_class = cls
|
||||
func.im_func = func
|
||||
func.im_self = None
|
||||
if not method_name:
|
||||
method_name = func.__name__
|
||||
cls.DtoolClassDict[method_name] = func;
|
||||
|
1
makepanda/.gitignore
vendored
1
makepanda/.gitignore
vendored
@ -1 +1,2 @@
|
||||
*.pyc
|
||||
*.pyo
|
||||
|
1
panda/.gitignore
vendored
1
panda/.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
*.pyc
|
||||
*.pyo
|
||||
# These are files that are generated within the source tree by the
|
||||
# ppremake system.
|
||||
Makefile
|
||||
|
Loading…
x
Reference in New Issue
Block a user