Get current executable path

func get_current_folder():
    var path = OS.get_executable_path().get_base_dir()

Related: [[Get files and dirs]]