MCPcopy Create free account
hub / github.com/bhowiebkr/PyFlowGraph / load_file

Function load_file

src/data/file_operations.py:282–294  ·  view source on GitHub ↗

Convenience function to load a file using the window's file operations manager. Args: window: The main window object with file_operations_manager file_path: Path to the file to load Returns: bool: True if successful, False otherwise

(window, file_path)

Source from the content-addressed store, hash-verified

280
281
282def load_file(window, file_path):
283 """Convenience function to load a file using the window's file operations manager.
284
285 Args:
286 window: The main window object with file_operations_manager
287 file_path: Path to the file to load
288
289 Returns:
290 bool: True if successful, False otherwise
291 """
292 if hasattr(window, 'file_operations_manager'):
293 return window.file_operations_manager.load(file_path)
294 return False

Callers 4

windowMethod · 0.90
setup_methodMethod · 0.90
setup_methodMethod · 0.90

Calls 1

loadMethod · 0.80

Tested by 4

windowMethod · 0.72
setup_methodMethod · 0.72
setup_methodMethod · 0.72