Browse Source

Fix finding extension modules ending in "module.so" with the VFS importer

rdb 10 years ago
parent
commit
81801654a2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      direct/src/showbase/VFSImporter.py

+ 1 - 2
direct/src/showbase/VFSImporter.py

@@ -76,8 +76,7 @@ class VFSImporter:
             if desc[2] != imp.C_EXTENSION:
             if desc[2] != imp.C_EXTENSION:
                 continue
                 continue
 
 
-            filename = Filename(path)
-            filename.setExtension(desc[0][1:])
+            filename = Filename(path + desc[0])
             vfile = vfs.getFile(filename, True)
             vfile = vfs.getFile(filename, True)
             if vfile:
             if vfile:
                 return VFSLoader(dir_path, vfile, filename, FTExtensionModule,
                 return VFSLoader(dir_path, vfile, filename, FTExtensionModule,