File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1414from ..hardware import GfxDriver
1515from ..networking import fetch_data_from_url , list_interfaces
1616from ..output import debug , error , info
17- from ..storage import storage
1817from .profile_model import ProfileConfiguration
1918
2019if TYPE_CHECKING :
2928
3029class ProfileHandler :
3130 def __init__ (self ) -> None :
32- self ._profiles_path : Path = storage ['PROFILE' ]
3331 self ._profiles : list [Profile ] | None = None
3432
3533 # special variable to keep track of a profile url configuration
@@ -346,8 +344,9 @@ def _find_available_profiles(self) -> list[Profile]:
346344 """
347345 Search the profile path for profile definitions
348346 """
347+ profiles_path = Path (__file__ ).parents [2 ] / 'default_profiles'
349348 profiles = []
350- for file in self . _profiles_path .glob ('**/*.py' ):
349+ for file in profiles_path .glob ('**/*.py' ):
351350 # ignore the abstract default_profiles class
352351 if 'profile.py' in file .name :
353352 continue
Original file line number Diff line number Diff line change 99from typing import Any
1010
1111storage : dict [str , Any ] = {
12- 'PROFILE' : Path (__file__ ).parent .parent .joinpath ('default_profiles' ),
1312 'LOG_PATH' : Path ('/var/log/archinstall' ),
1413 'LOG_FILE' : Path ('install.log' ),
1514 'MOUNT_POINT' : Path ('/mnt/archinstall' ),
You can’t perform that action at this time.
0 commit comments