Skip to content

Commit

Permalink
Address easy PR comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Mar 5, 2022
1 parent 7559513 commit 94759e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions signac/contrib/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Project:
----------
root : str, optional
The project root directory. By default, the current working directory
working directory (Default value = None).
(Default value = None).
"""

Expand All @@ -119,7 +119,8 @@ class Project:
def __init__(self, root=None):
if root is None:
root = os.getcwd()
# Project constructor does not discover, so the root must be exact.
# Project constructor does not search upward, so the provided root must
# be a project directory.
config = load_config(root, local=True)
self._config = _ProjectConfig(config)
self._lock = RLock()
Expand Down
1 change: 0 additions & 1 deletion tests/test_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def setUp(self, request):
pythonpath = [os.getcwd()] + pythonpath.split(":")
os.environ["PYTHONPATH"] = ":".join(pythonpath)
self.tmpdir = TemporaryDirectory(prefix="signac_")
self.project_name = f"Project({repr(os.path.realpath(self.tmpdir.name))})"
request.addfinalizer(self.tmpdir.cleanup)
self.cwd = os.getcwd()
os.chdir(self.tmpdir.name)
Expand Down

0 comments on commit 94759e9

Please sign in to comment.