mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47:32 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
|
|
@ -6,16 +6,21 @@ import sys
|
|||
|
||||
def main():
|
||||
if sys.platform == 'win32' or len(sys.argv) < 2:
|
||||
print(0)
|
||||
print((0))
|
||||
else:
|
||||
cc = os.environ.get('CC', 'cc')
|
||||
try:
|
||||
cc_is_arg = sys.argv[1] in subprocess.check_output(
|
||||
[cc, '--version'], universal_newlines=True)
|
||||
if sys.argv[1] == "cc":
|
||||
cc_output = subprocess.check_output(
|
||||
[cc, '--version'], universal_newlines=True)
|
||||
cc_is_arg = "cc" in cc_output and not ("gcc" in cc_output)
|
||||
else:
|
||||
cc_is_arg = sys.argv[1] in subprocess.check_output(
|
||||
[cc, '--version'], universal_newlines=True)
|
||||
except OSError:
|
||||
# We probably just don't have CC/cc.
|
||||
cc_is_arg = False
|
||||
print(int(cc_is_arg))
|
||||
print((int(cc_is_arg)))
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue