增强ToolFile对斜杠的判断与相关行为

This commit is contained in:
2025-10-14 17:09:04 +08:00
parent 97c57f65df
commit 81209e85ee
3 changed files with 41 additions and 29 deletions

View File

@@ -328,6 +328,12 @@ class PlatformIndicator:
CompanyName : str = "DefaultCompany"
ProductName : str = "DefaultProject"
@staticmethod
def GetFileSeparator(is_not_this_platform:bool = False) -> str:
if PlatformIndicator.IsPlatformWindows and not is_not_this_platform:
return "\\"
return "/"
@staticmethod
def GetApplicationPath() -> str:
"""获取应用程序所在目录"""