1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-13 13:09:49 +04:00

BLE/GAP fixes

by hedger
https://github.com/flipperdevices/flipperzero-firmware/pull/3533/files
This commit is contained in:
MX
2024-03-22 23:43:09 +03:00
parent d1d3c43939
commit 46a90ec97f
9 changed files with 24 additions and 21 deletions

View File

@@ -105,7 +105,8 @@ class PosixPathWrapper:
return self.fix_path(env.subst(self.pathobj))
def path_as_posix(path):
if SCons.Platform.platform_default() == "win32":
return path.replace(os.path.sep, os.path.altsep)
return path
def open_browser_action(target, source, env):
if sys.platform == "darwin":
subprocess.run(["open", source[0].abspath])
else:
webbrowser.open(source[0].abspath)