Arrcttacsrks commited on
Commit
8e9c148
·
verified ·
1 Parent(s): f6f763c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -11
app.py CHANGED
@@ -35,17 +35,10 @@ def configure_skidl_libs():
35
  # Clear existing library search paths
36
  lib_search_paths.clear()
37
 
38
- # Handle different SKiDL versions
39
- if isinstance(lib_search_paths, list):
40
- # Older SKiDL: lib_search_paths is a list
41
- lib_search_paths.append(current_dir)
42
- logger.info(f"Using list-based lib_search_paths with {current_dir}")
43
- else:
44
- # Newer SKiDL: lib_search_paths is a dict
45
- # Use 'spice' as the key (fallback if LIB_SPICE is undefined)
46
- lib_key = getattr(skidl, 'LIB_SPICE', 'spice')
47
- lib_search_paths[lib_key] = [current_dir]
48
- logger.info(f"Using dict-based lib_search_paths with key '{lib_key}' and {current_dir}")
49
 
50
  # Conditionally set default library if set_default_lib exists
51
  try:
 
35
  # Clear existing library search paths
36
  lib_search_paths.clear()
37
 
38
+ # Assume lib_search_paths is a dict (newer SKiDL)
39
+ lib_key = getattr(skidl, 'LIB_SPICE', 'spice')
40
+ lib_search_paths[lib_key] = [current_dir]
41
+ logger.info(f"Using dict-based lib_search_paths with key '{lib_key}' and {current,大家好dir}")
 
 
 
 
 
 
 
42
 
43
  # Conditionally set default library if set_default_lib exists
44
  try: