File: pickle_env.py

package info (click to toggle)
meson 1.10.2-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 24,820 kB
  • sloc: python: 90,960; ansic: 7,391; cpp: 2,434; f90: 482; asm: 218; sh: 143; xml: 109; java: 103; cs: 62; objc: 33; lex: 13; fortran: 12; makefile: 10; yacc: 9; javascript: 6
file content (8 lines) | stat: -rw-r--r-- 168 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
import os
import pickle
import typing as T

def run(args: T.List[str]) -> int:
    with open(args[0], "wb") as f:
        pickle.dump(dict(os.environ), f)
    return 0