Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepGraphLearning/graphvite
/ __enter__
Method
__enter__
python/graphvite/util.py:79–81 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
77
self.dir = dir
78
79
def
__enter__(self):
80
self.old_dir = os.getcwd()
81
os.chdir(self.dir)
82
83
def
__exit__(self, *args):
84
os.chdir(self.old_dir)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected