()
| 280 | |
| 281 | _RootFSPath = None |
| 282 | def 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 | |
| 309 | def CheckRootFSInstallStatus(): |
| 310 | Distro = GetDistro()[1] # Extract Ubuntu version number, e.g. "23.10" |
no outgoing calls
no test coverage detected