Browse Source

stdpy: Fix glob not finding files in VFS

Half of fix to #1675
rdb 1 year ago
parent
commit
b022fc9301
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/stdpy/glob.py

+ 1 - 1
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] != '.':