@staticmethod
def open_file_to_edit(filename, line_number):
    if (not os.path.isfile(filename)):
        raise FileNotFoundError(f"'{filename}' not found or is not a file.")
    if (not line_number):
        line_number = 1
    editor = os.environ.get('EDITOR', 'nano')
    import subprocess
    subprocess.call([editor, f'+{line_number}', filename], shell=False)
    return filename
@staticmethod
def open_file_to_edit(filename, line_number):
    if (not os.path.isfile(filename)):
        raise FileNotFoundError(f"'{filename}' not found or is not a file.")
    if (not line_number):
        line_number = 1
    editor = os.environ.get('EDITOR', 'nano')
    import subprocess
    subprocess.call([editor, f'+{line_number}', filename], shell=False)
    return filename