Alef1986 commited on
Commit
6fcbe2b
·
verified ·
1 Parent(s): 98c526b

Upload app_det.py

Browse files
Files changed (1) hide show
  1. app_det.py +7 -1
app_det.py CHANGED
@@ -48,7 +48,13 @@ try:
48
  sorted_process_names = sorted(list(processes.values()))
49
  sorted_object_names = sorted(list(business_objects.values()))
50
  except FileNotFoundError:
51
- st.error(f"File 'ISO15288_Archi_Import.xml' not found. Looked at: {xml_file_path}")
 
 
 
 
 
 
52
  st.stop()
53
 
54
  # Build the global context to pass to the cases
 
48
  sorted_process_names = sorted(list(processes.values()))
49
  sorted_object_names = sorted(list(business_objects.values()))
50
  except FileNotFoundError:
51
+ # Получаем список всех файлов в директории скрипта
52
+ files_in_dir = os.listdir(current_script_dir)
53
+
54
+ st.error(f"Файл 'ISO15288_Archi_Import.xml' не найден.")
55
+ st.warning(f"Скрипт искал его по пути: {xml_file_path}")
56
+ st.info(f"Фактическое содержимое папки {current_script_dir}:")
57
+ st.write(files_in_dir) # Выведет список файлов прямо на экран Streamlit
58
  st.stop()
59
 
60
  # Build the global context to pass to the cases