Module Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler body Return TryExcept body With Call NameLoad Str Str NameStore body Expr Call AttributeLoad NameLoad attr ListLoad Str Str BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type TupleLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Print Call NameLoad NameLoad Return NameLoad decorator_list
N/A N/A pwd N/A os N/A sys N/A itertools N/A subprocess __fix_perms N/A N/A userinfo N/A N/A N/A  If _MEIPASS is defined we are executing in a pyinstaller environment
    In that case we need to recursively chown that directory to our target user before continuing.
     N/A N/A N/A target N/A sys _MEIPASS N/A N/A N/A N/A N/A N/A N/A N/A open /dev/null wb devnull N/A N/A N/A N/A subprocess check_call N/A chown -R N/A %s:%s N/A N/A userinfo pw_uid N/A userinfo pw_gid target stdout devnull stderr devnull N/A N/A N/A N/A OSError N/A subprocess CalledProcessError N/A N/A N/A N/A os chown target N/A userinfo pw_uid N/A userinfo pw_gid N/A N/A root dirs files N/A N/A os walk target N/A N/A f N/A N/A itertools chain dirs files N/A N/A N/A N/A os chown N/A N/A N/A os path join root f N/A userinfo pw_uid N/A userinfo pw_gid N/A setuser N/A N/A user_or_pid N/A N/A N/A N/A N/A N/A N/A userinfo N/A N/A pwd getpwuid N/A int user_or_pid N/A N/A N/A ValueError N/A N/A userinfo N/A N/A pwd getpwnam user_or_pid N/A N/A __fix_perms userinfo N/A N/A N/A os setgid N/A userinfo pw_gid N/A N/A N/A os setuid N/A userinfo pw_uid N/A True N/A N/A N/A KeyError N/A e N/A N/A N/A str e N/A False N/A