MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / GetRootFSPath

Function GetRootFSPath

Scripts/InstallFEX.py:282–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280
281_RootFSPath = None
282def GetRootFSPath():
283 global _RootFSPath
284
285 if _RootFSPath == None:
286 # Follows the same logic as FEXCore::Config::GetDataDirectory()
287 HomeDir = os.getenv("HOME")
288 if HomeDir == None:
289 HomeDir = os.getenv("PWD")
290 if HomeDir == None:
291 HomeDir = "."
292
293 Path = HomeDir
294 DataXDG = os.getenv("XDG_DATA_HOME")
295 if DataXDG != None:
296 Path = DataXDG
297
298 Path = Path + "/.fex-emu"
299
300 DataOverride = os.getenv("FEX_APP_DATA_LOCATION")
301
302 if DataOverride != None:
303 Path = DataOverride
304
305 _RootFSPath = Path + "/RootFS/"
306
307 return _RootFSPath
308
309def CheckRootFSInstallStatus():
310 Distro = GetDistro()[1] # Extract Ubuntu version number, e.g. "23.10"

Callers 1

CheckRootFSInstallStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected