mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
parent
aace94a521
commit
4e7742b8e2
@ -65,7 +65,7 @@ class VFSImporter:
|
|||||||
vfile = vfs.getFile(filename, True)
|
vfile = vfs.getFile(filename, True)
|
||||||
if vfile:
|
if vfile:
|
||||||
return VFSLoader(dir_path, vfile, filename,
|
return VFSLoader(dir_path, vfile, filename,
|
||||||
desc=('.py', 'U', imp.PY_SOURCE))
|
desc=('.py', 'r', imp.PY_SOURCE))
|
||||||
|
|
||||||
# If there's no .py file, but there's a .pyc file, load that
|
# If there's no .py file, but there's a .pyc file, load that
|
||||||
# anyway.
|
# anyway.
|
||||||
@ -93,7 +93,7 @@ class VFSImporter:
|
|||||||
vfile = vfs.getFile(filename, True)
|
vfile = vfs.getFile(filename, True)
|
||||||
if vfile:
|
if vfile:
|
||||||
return VFSLoader(dir_path, vfile, filename, packagePath=path,
|
return VFSLoader(dir_path, vfile, filename, packagePath=path,
|
||||||
desc=('.py', 'U', imp.PY_SOURCE))
|
desc=('.py', 'r', imp.PY_SOURCE))
|
||||||
for ext in compiledExtensions:
|
for ext in compiledExtensions:
|
||||||
filename = Filename(path, '__init__.' + ext)
|
filename = Filename(path, '__init__.' + ext)
|
||||||
vfile = vfs.getFile(filename, True)
|
vfile = vfs.getFile(filename, True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user