Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
intelli-zen
/
document_loaders
like
2
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
e94100d
document_loaders
/
toolbox
/
os
/
other.py
HoneyTian
first commit
e94100d
29 days ago
raw
Copy download link
history
blame
Safe
264 Bytes
import
os
import
inspect
def
pwd
():
"""你在哪个文件调用此函数, 它就会返回那个文件所在的 dir 目标"""
frame = inspect.stack()[
1
]
module = inspect.getmodule(frame[
0
])
return
os.path.dirname(os.path.abspath(module.__file__))