U ef @sBdZddlmZddlZddZddZdd Zed kr>edS) z=Inspect a target Python interpreter virtual environment wise.) annotationsNcCsT|dkr dSt|ttfs8t|tr,t|n tt|}t|trP|t}|S)N) isinstancestrbytestypereprdecodesysgetfilesystemencodingvaluer E/opt/hc_python/lib/python3.8/site-packages/virtualenv/create/debug.py encode_paths rcCsdd|DS)NcSsg|] }t|qSr )r).0ir r r sz$encode_list_path..r r r r rencode_list_pathsrc Cszddlm}Wntk r(t}YnX|d|fg}d}|D]6}tt|d}t|trdt|nt |}||d|<qBt |dd<ttj dd|dd<tj |d <z.ddl }t|d t|d d}t ||d <Wntk rYnXddl}t||d <zddl}t||d<Wn0tk rJ} zt| |d<W5d} ~ XYnXzddl} t| |d<Wn0tk r} zt| |d<W5d} ~ XYnXzddl} t| |d<Wn0tk r} zt| |d<W5d} ~ XYnXzddl} t| |d<Wn0tk r(} zt| |d<W5d} ~ XYnrXz| j|dd} tj | WnPttfk r} z,tjt| tj t|tdW5d} ~ XYnXdS)z/Print debug data about the virtual environment.r) OrderedDictr ) executable_base_executableprefix base_prefix real_prefix exec_prefixbase_exec_prefixpath meta_pathNZ fs_encodingencodingZ io_encodingversionget_makefile_filenameZ_get_makefile_filenameZmakefile_filenameossitedatetimemathjson)indent) collectionsr ImportErrordictgetattrr rlistrrr stdoutr sysconfigr!rr"r#r$r%dumpswrite ValueError TypeErrorstderr SystemExit)rresultZ path_keyskeyr r/makefiler!r" exceptionr#r$r%contentr r rruns`     r;__main__)__doc__ __future__rr rrr;__name__r r r rs  O