Add .py file extension to Python
This commit is contained in:
@@ -33,14 +33,14 @@ def setup_premake_path_override():
|
||||
# its repository.
|
||||
# On Termux, the home directory is in the internal storage - use it for
|
||||
# executing.
|
||||
# If xenia-build doesn't have execute permissions, Xenia is in the external
|
||||
# If xenia-build.py doesn't have execute permissions, Xenia is in the external
|
||||
# storage now.
|
||||
try:
|
||||
popen = subprocess.Popen(
|
||||
['uname', '-o'], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL,
|
||||
universal_newlines=True)
|
||||
if popen.communicate()[0] == 'Android\n':
|
||||
xb_file = os.path.join(root_path, 'xenia-build')
|
||||
xb_file = os.path.join(root_path, 'xenia-build.py')
|
||||
if (os.path.isfile(xb_file) and not os.access(xb_file, os.X_OK) and
|
||||
'HOME' in os.environ):
|
||||
premake_path = os.path.join(
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Copyright 2015 Ben Vanik. All Rights Reserved.
|
||||
|
||||
@@ -40,7 +40,7 @@ def main():
|
||||
return
|
||||
|
||||
# Setup main argument parser and common arguments.
|
||||
parser = argparse.ArgumentParser(prog='gpu-trace-diff',
|
||||
parser = argparse.ArgumentParser(prog='gpu-trace-diff.py',
|
||||
description='Run and diff GPU traces.')
|
||||
parser.add_argument(
|
||||
'-x', '--executable',
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Copyright 2015 Ben Vanik & shuffle2. All Rights Reserved.
|
||||
|
||||
@@ -217,7 +217,7 @@ def generate_table(insns):
|
||||
for i in insns:
|
||||
w1(fmt % (i.opcode, i.mnem, i.form, i.group, i.type))
|
||||
w0('};')
|
||||
w0('static_assert(sizeof(ppc_opcode_table) / sizeof(PPCOpcodeInfo) == static_cast<int>(PPCOpcode::kInvalid), "PPC table mismatch - rerun ppc-table-gen");')
|
||||
w0('static_assert(sizeof(ppc_opcode_table) / sizeof(PPCOpcodeInfo) == static_cast<int>(PPCOpcode::kInvalid), "PPC table mismatch - rerun ppc-table-gen.py");')
|
||||
w0('')
|
||||
w0('const PPCOpcodeInfo& GetOpcodeInfo(PPCOpcode opcode) {')
|
||||
w1('return ppc_opcode_table[static_cast<int>(opcode)];')
|
||||
@@ -379,7 +379,7 @@ def generate_disasm(insns):
|
||||
('PrintDisasm_' + literal_mnem(i.mnem)) if i.disasm_str else 'nullptr',
|
||||
))
|
||||
w0('};')
|
||||
w0('static_assert(sizeof(ppc_opcode_disasm_table) / sizeof(PPCOpcodeDisasmInfo) == static_cast<int>(PPCOpcode::kInvalid), "PPC table mismatch - rerun ppc-table-gen");')
|
||||
w0('static_assert(sizeof(ppc_opcode_disasm_table) / sizeof(PPCOpcodeDisasmInfo) == static_cast<int>(PPCOpcode::kInvalid), "PPC table mismatch - rerun ppc-table-gen.py");')
|
||||
w0('')
|
||||
w0('const PPCOpcodeDisasmInfo& GetOpcodeDisasmInfo(PPCOpcode opcode) {')
|
||||
w1('return ppc_opcode_disasm_table[static_cast<int>(opcode)];')
|
||||
Reference in New Issue
Block a user