MCPcopy
hub / github.com/pandas-dev/pandas / main

Function main

generate_pxi.py:16–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15
16def main() -> None:
17 parser = argparse.ArgumentParser()
18 parser.add_argument("infile", type=str, help="Path to the input file")
19 parser.add_argument("-o", "--outdir", type=str, help="Path to the output directory")
20 args = parser.parse_args()
21
22 if not args.infile.endswith(".in"):
23 raise ValueError(f"Unexpected extension: {args.infile}")
24
25 outdir_abs = os.path.join(os.getcwd(), args.outdir)
26 outfile = os.path.join(
27 outdir_abs, os.path.splitext(os.path.split(args.infile)[1])[0]
28 )
29
30 process_tempita(args.infile, outfile)
31
32
33main()

Callers 1

generate_pxi.pyFile · 0.70

Calls 4

process_tempitaFunction · 0.85
endswithMethod · 0.80
splitMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected