
    hF                     H    S r SSKrSSKr\R                  " S5      r SS jrg)zHCollection of utilities for command-line interfaces and console scripts.    Nz#\d+$c                 x   [         R                  R                  U 5      u  pV[         R                  R                  U5      u  pgU(       a  Un[        R                  U5      S   nUc"  [         R                  R                  U 5      S   n[         R                  R                  XVU-   U-   5      nSn	U(       d  [         R                  R                  U5      (       a_  [         R                  R                  XVU-   S-   [        U	5      -   U-   5      nU	S-  n	[         R                  R                  U5      (       a  M_  U$ )a  Generates a suitable file name for writing output.

Often tools will want to take a file, do some kind of transformation to it,
and write it out again. This function determines an appropriate name for the
output file, through one or more of the following steps:

- changing the output directory
- appending suffix before file extension
- replacing the file extension
- suffixing the filename with a number (``#1``, ``#2``, etc.) to avoid
  overwriting an existing file.

Args:
    input: Name of input file.
    outputDir: Optionally, a new directory to write the file into.
    suffix: Optionally, a string suffix is appended to file name before
        the extension.
    extension: Optionally, a replacement for the current file extension.
    overWrite: Overwriting an existing file is permitted if true; if false
        and the proposed filename exists, a new name will be generated by
        adding an appropriate number suffix.

Returns:
    str: Suitable output filename
r      #)ospathsplitsplitextnumberAddedREjoinexistsrepr)
input	outputDir	extension	overWritesuffixdirNamefileNameextoutputns
             I/var/www/html/env/lib/python3.13/site-packages/fontTools/misc/cliTools.pymakeOutputFileNamer   
   s    8 e,GGG$$X.MH""8,Q/HGG$$U+A.	WW\\'f#4y#@AF	AggnnV$$WW\\F*S047:YFF FA	 ggnnV$$
 M    )NNF )__doc__r   recompiler
   r    r   r   <module>r       s*    N 	 	 

8$ DF+r   