def open_folder_cmd_line(query, default_path=None):
    """Queries the user for a path to open
    
    :param str query: Query that asks the user for a specific folder path to be opened
    :param str default_path: Path to use if the user doesn't specify a path 
    :return: Input path from the user or `default_path` if nothing is specified or None if path does not exist
    :rtype: str
    """
    user_input = input(query + ': ')
    if len(user_input) == 0:
        user_input = default_path
    if not user_input or not os.path.isdir(user_input):
        return None
    return user_input
def open_folder_cmd_line ( query , default_path = None ) : user_input = input ( query + ': ' ) if len ( user_input ) == 0 : user_input = default_path if not user_input or not os . path . isdir ( user_input ) : return None return user_input
Queries the user for a path to open
    
    :param str query: Query that asks the user for a specific folder path to be opened
    :param str default_path: Path to use if the user doesn't specify a path 
    :return: Input path from the user or `default_path` if nothing is specified or None if path does not exist
    :rtype: str