tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

platform.star (535B)


      1 # -*- bazel-starlark -*-
      2 # Copyright 2023 The Chromium Authors
      3 # Use of this source code is governed by a BSD-style license that can be
      4 # found in the LICENSE file.
      5 """Utilities that fill gap between platforms."""
      6 
      7 load("@builtin//runtime.star", "runtime")
      8 load("@builtin//struct.star", "module")
      9 
     10 # Python binary name. python3 or python3.exe.
     11 __python_bin = {
     12     # is_windows => python bin
     13     True: "python3.exe",
     14     False: "python3",
     15 }[runtime.os == "windows"]
     16 
     17 platform = module(
     18     "platform",
     19     python_bin = __python_bin,
     20 )