增强ToolFile对斜杠的判断与相关行为
This commit is contained in:
@@ -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:
|
||||
"""获取应用程序所在目录"""
|
||||
|
Reference in New Issue
Block a user