
    W|h	                        S r SSKrSSKrSSKJr  SSKJr   SSKJ	r	J
r
  \	" 5       r\
" \5        \R                  " SS5      r\R                  " SS	5      r\R                   S
:H  rS r\S:X  a  SSKJr  \" 5       rOV\S	:X  a2  \" S/5      S   (       a  SrO<\(       d  \" S/5      S   (       a  SrO!SrO\" \/5      u  rr\(       d  \" \ S35      e\S	:X  a2  \" S/5      S   (       a  SrO<\(       d  \" S/5      S   (       a  SrO!SrO\" \/5      u  rr\(       d  \" \ S35      eS r\S:X  a  \" 5         gg! \ a    Sr GNf = f)z/Third party programs configuration for MoviePy.    N)Path)cross_platform_popen_params)find_dotenvload_dotenvFFMPEG_BINARYzffmpeg-imageioFFPLAY_BINARYzauto-detectposixc                      [        [        R                  [        R                  [        R                  S.5      n[        R                  " U 40 UD6nUR                  5         g! [         a  nSU4s SnA$ SnAff = f)zBVerify if the OS support command invocation as expected by moviepy)stdoutstderrstdin)TNFN)r   spPIPEDEVNULLPopencommunicate	Exception)cmdpopen_paramsprocerrs       H/home/james-whalen/.local/lib/python3.13/site-packages/moviepy/config.pytry_cmdr      si    	2ww"''BJJG
 xx,|,   czs   A A# #
A;-A60A;6A;)get_exeffmpegz
ffmpeg.exeunsetz: - The path specified for the ffmpeg binary might be wrongffplayz
ffplay.exec                     [        [        /5      S   (       a  [        S[         S35        O[        S[         S35        [        [        /5      S   (       a  [        S[         S35        O[        S[         S35        [        (       a:  [        S[         S35        [        [        [        5      R                  5       5        g	g	)
z3Check if moviepy has found the binaries for FFmpeg.r   z'MoviePy: ffmpeg successfully found in 'z'.z)MoviePy: can't find or access ffmpeg in 'z'MoviePy: ffplay successfully found in 'z)MoviePy: can't find or access ffplay in 'z
.env file content at z:
N)r   r   printr   DOTENVr   	read_text     r   checkr$   I   s    "7bIJ9-KL"7bIJ9-KLv'xs34d6l$$&' r#   __main__)__doc__os
subprocessr   pathlibr   moviepy.toolsr   dotenvr   r   r    ImportErrorgetenvr   r   nameIS_POSIX_OSr   imageio.plugins.ffmpegr   successr   IOErrorr$   __name__r"   r#   r   <module>r4      sl   5 	   5/]F 		/+;<		/=9gg  $$.IMm#z1 Wl^4Q7$M?+LGSeMN
 	

 M!z1 Wl^4Q7$M?+LGSeMN
 	

(" z	G W  Fs   D9 9EE