@@ -30,7 +30,7 @@ def find_7zip_executable() -> str:
3030 possible_program_files = [
3131 Path (r"C:\Program Files" ),
3232 Path (r"C:\Program Files (x86)" ),
33- Path (sys .prefix ).parent / "t" ,
33+ Path (sys .prefix ).parent / "t" ,
3434 ]
3535 for base_dir in possible_program_files :
3636 if (executable_path := base_dir / "7-Zip" / "7z.exe" ).is_file ():
@@ -291,13 +291,6 @@ def pre_path_entries(self) -> list[str]:
291291 r".." + self .NODEJS_RELATIVE_PATH ,
292292 ]
293293
294- @property
295- def documentation_directories_list (self ) -> list [Path ]:
296- """Returns the list of documentation directories to include."""
297- if (default_docs_directory := Path (__file__ ).parent / "docs" ).is_dir ():
298- return [default_docs_directory ] + self .documentation_directories
299- return self .documentation_directories
300-
301294 def create_installer_7zip (self , installer_type : str = ".exe" ):
302295 """Creates a WinPython installer using 7-Zip: ".exe", ".7z", ".zip")"""
303296 self ._print_action (f"Creating WinPython installer ({ installer_type } )" )
@@ -347,7 +340,7 @@ def _copy_essential_files(self):
347340
348341 docs_target_directory = self .winpython_directory / "notebooks" / "docs"
349342 self ._print_action (f"Copying documentation to { docs_target_directory } " )
350- _copy_items (self .documentation_directories_list , docs_target_directory , self .verbose )
343+ _copy_items (self .documentation_directories , docs_target_directory , self .verbose )
351344
352345 tools_target_directory = self .winpython_directory / "t"
353346 self ._print_action (f"Copying tools to { tools_target_directory } " )
0 commit comments