pysilcam/__main__.py
def check_path(filename):
    '''Check if a path exists, and create it if not

    Args:
        filename (str): filame that may or may not include a path
    '''

    file = os.path.normpath(filename)
    path = os.path.dirname(file)
    if path:
        if not os.path.isdir(path):
            try:
                os.makedirs(path)
            except:
                print('Could not create catalog:', path)
Check if a path exists, and create it if not

    Args:
        filename (str): filame that may or may not include a path
    
Check if a path exists, and create it if not
Check if a path exists and create it if not
def check_path(filename):
    file = os.path.normpath(filename)
    path = os.path.dirname(file)
    if path:
        if not os.path.isdir(path):
            try:
                os.makedirs(path)
            except:
                print('Could not create catalog:', path)
def check_path ( filename ) : file = os . path . normpath ( filename ) path = os . path . dirname ( file ) if path : if not os . path . isdir ( path ) : try : os . makedirs ( path ) except : print ( 'Could not create catalog:' , path )
Check if a path exists, and create it if not
Check if a path exists and create it if not
'''Check if a path exists, and create it if not

    Args:
        filename (str): filame that may or may not include a path
    '''
filename
filame that may or may not include a path
filame that may or may not include a path