MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / document_dir

Function document_dir

web/pgadmin/utils/__init__.py:191–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189 buf_size += needed
190
191 def document_dir():
192 CSIDL_PERSONAL = 5 # My Documents
193 SHGFP_TYPE_CURRENT = 0 # Get current, not default value
194
195 buf = ctypes.create_unicode_buffer(wintypes.MAX_PATH)
196 ctypes.windll.shell32.SHGetFolderPathW(
197 None, CSIDL_PERSONAL, None, SHGFP_TYPE_CURRENT, buf
198 )
199
200 return buf.value
201
202else:
203 def env(name):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected