Skip to content

Commit

Permalink
Fix folder construction in package (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
carolineechen authored Jul 30, 2024
1 parent dcdf928 commit 71d18da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runhouse/resources/packages/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,11 @@ def from_string(specifier: str, dryrun=False):
# Check if this is a package that was installed from local
local_install_path = get_local_install_path(target)
if local_install_path and Path(local_install_path).exists():
target = Folder(path=local_install_path, dryrun=True)
from runhouse.resources.folders import Folder

target = Folder(
path=local_install_path, system=Folder.DEFAULT_FS, dryrun=True
)

# "Local" install method is a special case where we just copy a local folder and add to path
if install_method == "local":
Expand Down

0 comments on commit 71d18da

Please sign in to comment.