Fix incorrect variable name in NetworkXStorage file path

- Fix working_dir -> workspace_dir typo
- Correct GraphML file path generation
This commit is contained in:
yangdx 2025-09-04 18:31:53 +08:00
parent 50adf64fab
commit f19cce16be

View file

@ -51,7 +51,7 @@ class NetworkXStorage(BaseGraphStorage):
os.makedirs(workspace_dir, exist_ok=True) os.makedirs(workspace_dir, exist_ok=True)
self._graphml_xml_file = os.path.join( self._graphml_xml_file = os.path.join(
working_dir, f"graph_{self.namespace}.graphml" workspace_dir, f"graph_{self.namespace}.graphml"
) )
self._storage_lock = None self._storage_lock = None
self.storage_updated = None self.storage_updated = None