summaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/pickle_env.py
blob: 79e613fe00a602d2f1fd48206b45785248fe44d0 (plain)
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