def get_files_dir():
"""Get directory for config and remote files."""
try:
home = Path.home()
except AttributeError:
# Fix for older Python version were Path has no 'home' attribute
home = os.getenv('HOME', '/tmp/') # Ignore B108
files_dir = os.path.join(home, '.fabric8-analytics-tagger')
if not os.path.exists(files_dir):
os.makedirs(files_dir)
return files_dir
utils.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录