Skip to content

Commit

Permalink
Update load_modules.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SermetPekin authored Jul 27, 2024
1 parent 01e0b3a commit 266927b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions evdspy/EVDSlocal/initial/load_modules.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@

# -------------------------------------------------------------------------
# from evdspy.EVDSlocal.before_main_ import *
from evdspy.EVDSlocal.components.evds_files import EvdsSorguSeries
from evdspy.EVDSlocal.components.evds_seri_files import EvdsSeri, EvdsSeriesRequest, EvdsSeriesRequestWrapper
from evdspy.EVDSlocal.series_format.populate_series import PopulateSeries
Expand All @@ -21,7 +18,7 @@
import typing as t
from dataclasses import dataclass , field
from typing import Optional ,List

from .cache_folder import get_cache_folder
@dataclass
class LoadModulesClass():
options_: Optional[any] = field(default_factory=load_options)
Expand Down Expand Up @@ -211,6 +208,10 @@ def check_items(self, evds_items):
def display():
options_file_name = "options.cfg"
options_file_created = Path(options_file_name).is_file()

cache_folder_ok = get_cache_folder().is_dir()


options_display = SingletonOptions().check()
if 'NEXT_RELEASE' not in str(Path.cwd()):
workspace = str(Path.cwd()).replace(":", ".")
Expand All @@ -219,9 +220,10 @@ def display():
hiddenok = "hidden"
if not api_key_is_ok:
hiddenok = ""
msg = f"""
msg = rf"""
Workspace : {workspace}
Folders created :{folders_ok}
Cache folder was created :{cache_folder_ok} [{str(get_cache_folder()).replace(":", " ")}]
Series file was created :{series_file_was_created} {indent} {ps.input_file_name}
Options file was created :{options_file_created} {indent} {options_file_name}
Api key was set :{api_key_is_ok} {indent} {hiddenok}
Expand All @@ -232,4 +234,4 @@ def display():
title=" Checking installation and other setup requirements ",
columns=('', '',),
skiprow=1)
display()
display()

0 comments on commit 266927b

Please sign in to comment.