mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-01-27 10:19:49 +00:00
Update handling methods related to macOS version
This commit is contained in:
@@ -163,6 +163,13 @@ class Utils:
|
||||
# Convert the path to an absolute path and normalize it according to the OS
|
||||
return str(pathlib.Path(path).resolve())
|
||||
|
||||
def parse_darwin_version(self, version):
|
||||
if not isinstance(version, str):
|
||||
return version
|
||||
|
||||
major, minor, patch = map(int, version.split('.'))
|
||||
return major, minor, patch
|
||||
|
||||
def open_folder(self, folder_path):
|
||||
if os.name == 'posix':
|
||||
if 'darwin' in os.uname().sysname.lower():
|
||||
|
||||
Reference in New Issue
Block a user