Browse Source

use absolute path in Project.load() to ensure dirname() on current directory returns the parent path (instead of an empty string). this fixes finding the monorepo when inside a package directory

shut-new-model
Niklas Rosenstein 9 months ago
parent
commit
48f4d0d7a6
No known key found for this signature in database GPG Key ID: 6D269B33D25F6C6
1 changed files with 1 additions and 0 deletions
  1. + 1
    - 0
      src/shut/model/__init__.py

+ 1
- 0
src/shut/model/__init__.py

@ -80,6 +80,7 @@ class Project:
project.
"""
directory = os.path.abspath(directory)
monorepo_fn = None
package_fn = None

Loading…
Cancel
Save