From b022fc9301a14bf0dd75b391e8ecbd3cfbbce568 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 24 Oct 2024 16:10:35 +0200 Subject: [PATCH] stdpy: Fix glob not finding files in VFS Half of fix to #1675 --- direct/src/stdpy/glob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/stdpy/glob.py b/direct/src/stdpy/glob.py index d1a4946c0e..022a05aeb5 100755 --- a/direct/src/stdpy/glob.py +++ b/direct/src/stdpy/glob.py @@ -56,7 +56,7 @@ def glob1(dirname, pattern): dirname = unicode(dirname, sys.getfilesystemencoding() or sys.getdefaultencoding()) try: - names = os.listdir(dirname) + names = file.listdir(dirname) except os.error: return [] if pattern[0] != '.':