Skip to content

Commit

Permalink
fix: circular import issue (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Feb 15, 2024
1 parent 6502d54 commit c324c51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/cli/hpc_access_cli/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from typing import Any, Dict, List, Optional
from uuid import UUID

from hpc_access_cli.fs import get_extended_attribute
from pydantic import BaseModel

#: Login shell to use for disabled users.
Expand Down Expand Up @@ -48,6 +47,8 @@ class FsDirectory(BaseModel):
@staticmethod
def from_path(path: str) -> "FsDirectory":
"""Create a new instance from a path."""
from hpc_access_cli.fs import get_extended_attribute

# Get owner user name, owner uid, group name, group gid
uid = os.stat(path).st_uid
gid = os.stat(path).st_gid
Expand Down

0 comments on commit c324c51

Please sign in to comment.