Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

put linea dir in root #595

Merged
merged 7 commits into from
Apr 15, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove test and improved logging
  • Loading branch information
yifanwu committed Apr 14, 2022
commit 30f73d1c5ff7e6040a79b48ee50e532a45992090
4 changes: 2 additions & 2 deletions lineapy/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ def linea_folder() -> Path:
"""
Linea folder exists at the root user level (via `Path.home()`).
"""

# TODO: add a special case for tests (or some scoping config)
linea_folder = Path.home() / FOLDER_NAME
if not linea_folder.exists():
logger.warning(
"No .linea folder found. Creating a new folder in current directory."
f"No {FOLDER_NAME} folder found. Creating a new folder in {Path.home()} directory."
)
linea_folder.mkdir(parents=False, exist_ok=True)
return linea_folder
24 changes: 0 additions & 24 deletions tests/unit/test_linea_folder.py

This file was deleted.