
    jj=                     ,    d dl Z d dlZd dlmZ defdZy)    N)Pathreturnc                  X   t        t        dd      r t        t        d      x} rt        |       dz  S t        t              j                  j                         }t        t        j                  d            j                         }|dz  }|j                         s|dz  j                         r}ddl	}ddl
}|j                  t              }|j                  d	       |j                  d
dg|j                  d       |j                  j                  dz  }|j                  d       |dz  }|S )z
    Return the Path for mitmproxy-linux-redirector.

    For PyInstaller binaries this is the bundled executable,
    for wheels this is the file in the package,
    for development setups this may invoke cargo to build it.
    frozenF_MEIPASSzmitmproxy-linux-redirectorscriptsz../Cargo.tomlr   Nz9Development mode: Compiling mitmproxy-linux-redirector...cargobuildT)cwdcheckztarget/debugz8Development mode: Using target/debug/linux-redirector...)getattrsysr   __file__parentabsolute	sysconfigget_pathexistslogging
subprocess	getLogger__name__warningrun)pyinstaller_dirherer   exer   r   loggertarget_debugs           a/home/ubuntu/.cache/pipx/cdb5059130eadca/lib/python3.12/site-packages/mitmproxy_linux/__init__.pyexecutable_pathr!      s     sHe$WS*=U*U/*UO$'CCCH~$$--/y)))45>>@44 zz|!7 ? ? A&&x0FNNVW NNGW-4;;dNK;;-->LNNUV!==C
    )r   r   pathlibr   r!    r"   r    <module>r%      s    
   r"   