pyega3/libs/utils.py
def verify_output_dir(output_dir):
    """
    Checks whether the directory, specified by the "output_dir" parameter,
    exists or not. If "output_dir" points to a non-existent directory,
    then a NotADirectoryError exception is thrown, otherwise the absolute path
    of that directory is returned.
    """
    absolut_path_of_output_dir = os.path.abspath(output_dir)

    if os.path.isdir(absolut_path_of_output_dir):
        return absolut_path_of_output_dir
    else:
        raise NotADirectoryError(f'The "{output_dir}" directory, which was specified by the --output-dir '
                                 'command-line argument, is not an existing directory. '
                                 'Please either create that directory or specify a different one.')

    Checks whether the directory, specified by the "output_dir" parameter,
    exists or not. If "output_dir" points to a non-existent directory,
    then a NotADirectoryError exception is thrown, otherwise the absolute path
    of that directory is returned.
    
Checks whether the directory, specified by the "output_dir" parameter,
exists or not. If "output_dir" points to a non-existent directory,
then a NotADirectoryError exception is thrown, otherwise the absolute path
of that directory is returned.
Checks whether the directory specified by the " output_dir " parameter exists or not . If " output_dir " points to a non - existent directory then a NotADirectoryError exception is thrown otherwise the absolute path of that directory is returned .
def verify_output_dir(output_dir):
    absolut_path_of_output_dir = os.path.abspath(output_dir)
    if os.path.isdir(absolut_path_of_output_dir):
        return absolut_path_of_output_dir
    else:
        raise NotADirectoryError(f'The "{output_dir}" directory, which was specified by the --output-dir '
                                 'command-line argument, is not an existing directory. '
                                 'Please either create that directory or specify a different one.')
def verify_output_dir ( output_dir ) : absolut_path_of_output_dir = os . path . abspath ( output_dir ) if os . path . isdir ( absolut_path_of_output_dir ) : return absolut_path_of_output_dir else : raise NotADirectoryError ( f'The "{output_dir}" directory, which was specified by the --output-dir ' 'command-line argument, is not an existing directory. ' 'Please either create that directory or specify a different one.' )
Checks whether the directory, specified by the "output_dir" parameter,
exists or not.
Checks whether the directory specified by the " output_dir " parameter exists or not .
"""
    Checks whether the directory, specified by the "output_dir" parameter,
    exists or not. If "output_dir" points to a non-existent directory,
    then a NotADirectoryError exception is thrown, otherwise the absolute path
    of that directory is returned.
    """
output_dir