pypet/pypetlogging.py
def try_make_dirs(filename):
    """ Tries to make directories for a given `filename`.

    Ignores any error but notifies via stderr.

    """
    try:
        dirname = os.path.dirname(os.path.normpath(filename))
        racedirs(dirname)
    except Exception as exc:
        sys.stderr.write('ERROR during log config file handling, could not create dirs for '
                         'filename `%s` because of: %s' % (filename, repr(exc)))
def try_make_dirs(filename):
    try:
        dirname = os.path.dirname(os.path.normpath(filename))
        racedirs(dirname)
    except Exception as exc:
        sys.stderr.write('ERROR during log config file handling, could not create dirs for '
                         'filename `%s` because of: %s' % (filename, repr(exc)))
def try_make_dirs ( filename ) : try : dirname = os . path . dirname ( os . path . normpath ( filename ) ) racedirs ( dirname ) except Exception as exc : sys . stderr . write ( 'ERROR during log config file handling, could not create dirs for ' 'filename `%s` because of: %s' % ( filename , repr ( exc ) ) )
Tries to make directories for a given `filename`.

    Ignores any error but notifies via stderr.
Tries to make directories for a given filename .