瀏覽代碼

initial cwd in vfs

David Rose 23 年之前
父節點
當前提交
0f9dbf6b02
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      panda/src/putil/virtualFileSystem.cxx

+ 4 - 0
panda/src/putil/virtualFileSystem.cxx

@@ -495,6 +495,10 @@ get_global_ptr() {
         }
       }
     }
+
+    // Finally, our cwd is initially from the environment, if that
+    // maps into our new VFS.
+    _global_ptr->chdir(ExecutionEnvironment::get_cwd());
   }
 
   return _global_ptr;