corelp 1.0.28__tar.gz → 1.0.30__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. {corelp-1.0.28 → corelp-1.0.30}/PKG-INFO +1 -1
  2. {corelp-1.0.28 → corelp-1.0.30}/pyproject.toml +1 -1
  3. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/__init__.py +1 -1
  4. corelp-1.0.30/src/corelp/icon_pythonLP.png +0 -0
  5. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/Section_LP/Section.py +3 -3
  6. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/main_LP/main.py +21 -8
  7. corelp-1.0.30/src/corelp/pythonLP.png:Zone.Identifier +0 -0
  8. corelp-1.0.28/src/corelp/icon_pythonLP.ico +0 -0
  9. {corelp-1.0.28 → corelp-1.0.30}/README.md +0 -0
  10. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/Path_LP/Path.py +0 -0
  11. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/Path_LP/__init__.py +0 -0
  12. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/Path_LP/test_Path.py +0 -0
  13. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/Section_LP/__init__.py +0 -0
  14. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/Section_LP/test_Section.py +0 -0
  15. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/__init__.py +0 -0
  16. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/debug_LP/__init__.py +0 -0
  17. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/debug_LP/debug.py +0 -0
  18. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/debug_LP/test_debug.py +0 -0
  19. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/folder_LP/__init__.py +0 -0
  20. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/folder_LP/folder.py +0 -0
  21. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/folder_LP/test_folder.py +0 -0
  22. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/getmodule_LP/__init__.py +0 -0
  23. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/getmodule_LP/getmodule.py +0 -0
  24. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/kwargsself_LP/__init__.py +0 -0
  25. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/kwargsself_LP/kwargsself.py +0 -0
  26. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/kwargsself_LP/test_kwargsself.py +0 -0
  27. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/main_LP/__init__.py +0 -0
  28. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/main_LP/test_main.py +0 -0
  29. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/print_LP/__init__.py +0 -0
  30. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/print_LP/print.py +0 -0
  31. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/print_LP/test_print.py +0 -0
  32. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/prop_LP/__init__.py +0 -0
  33. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/prop_LP/prop.py +0 -0
  34. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/prop_LP/test_prop.py +0 -0
  35. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/rfrom_LP/__init__.py +0 -0
  36. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/rfrom_LP/rfrom.py +0 -0
  37. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/rfrom_LP/test_rfrom.py +0 -0
  38. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/selfkwargs_LP/__init__.py +0 -0
  39. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/selfkwargs_LP/selfkwargs.py +0 -0
  40. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/selfkwargs_LP/test_selfkwargs.py +0 -0
  41. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/test_LP/__init__.py +0 -0
  42. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/test_LP/test.py +0 -0
  43. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/test_LP/test_test.py +0 -0
  44. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/user_inputs_LP/__init__.py +0 -0
  45. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/user_inputs_LP/test_user_inputs.py +0 -0
  46. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules/user_inputs_LP/user_inputs.py +0 -0
  47. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/modules.json +0 -0
  48. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/py.typed +0 -0
  49. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/scripts/__init__.py +0 -0
  50. {corelp-1.0.28 → corelp-1.0.30}/src/corelp/scripts.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: corelp
3
- Version: 1.0.28
3
+ Version: 1.0.30
4
4
  Summary: A library that gathers core functions for python programming.
5
5
  Requires-Dist: ipython
6
6
  Requires-Dist: ipywidgets
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "corelp"
3
- version = "1.0.28"
3
+ version = "1.0.30"
4
4
  description = "A library that gathers core functions for python programming."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -19,7 +19,7 @@ if __name__ == "__main__":
19
19
  else :
20
20
  from .modules.getmodule_LP.getmodule import getmodule
21
21
  __getattr__, __all__ = getmodule(__file__)
22
- icon = PathlibPath(__file__).parent / "icon_pythonLP.ico"
22
+ icon = PathlibPath(__file__).parent / "icon_pythonLP.png"
23
23
 
24
24
 
25
25
 
@@ -141,8 +141,8 @@ class Section() :
141
141
  for link in symlink :
142
142
  print(f"- {link}")
143
143
  link_path = Path(link)
144
- link_folder = self.parent_path / link_path.stem
145
- new_stem = str(self.subfolder.as_posix()).replace('/', '--')
144
+ link_folder = self.parent_path.parent / f'_outputs/{link_path.stem}'
145
+ new_stem = str(self.subfolder.as_posix()).replace('/', '--').replace(' ', '_')
146
146
  if not link_folder.exists() :
147
147
  folder(link_folder, warning=False)
148
148
  link_from = wrapper.path / link_path
@@ -156,7 +156,7 @@ class Section() :
156
156
  print("Windows does not allow to create symlink, aborting. Consider using Windows in Developper mode.")
157
157
  break
158
158
  else:
159
- link_to.symlink_to(link_from, link_from.is_dir())
159
+ link_to.symlink_to(link_from)
160
160
  print('...created\n')
161
161
 
162
162
 
@@ -114,29 +114,30 @@ def main() :
114
114
  if ipath is None :
115
115
  root = tk.Tk()
116
116
  root.title("Select import path")
117
- root.iconbitmap(default=icon)
117
+ img = tk.PhotoImage(file=icon)
118
+ root.iconphoto(True, img)
119
+ root._icon_img = img # keep reference
118
120
  root.withdraw()
121
+ root.update()
119
122
  ipath = filedialog.askdirectory(title=f'Select import path for {name}')
120
123
  root.destroy()
121
124
  if not ipath :
122
125
  print('Searching for import_path was cancelled', style='red')
123
126
  raise ValueError('Searching for import_path was cancelled')
124
127
  epath = exec_globals.get('export_path', "None")
125
- if epath is None :
126
- epath = ipath
127
128
  if ipath != "None" :
128
129
  ipath = Path(ipath)
129
130
  if epath != "None" :
130
- epath = Path(epath)
131
+ epath = ipath.parent if epath is None else Path(epath)
131
132
 
132
133
  # Creating new export path
133
134
  prefix = name.replace('.', '_')
134
135
  if epath != "None" :
135
136
  if _new :
136
- epath = folder(epath / (f'{prefix}_' + datetime.now().strftime("%Y-%m-%d-%Hh%Mmin%Ss")), warning=False)
137
+ base_path = folder(epath / (f'{prefix}_' + datetime.now().strftime("%Y-%m-%d-%Hh%Mmin%Ss")), warning=False)
137
138
  else :
138
139
  #Searching for newest old folder
139
- efolder = None
140
+ base_folder = None
140
141
  _date = None
141
142
  for f in epath.iterdir() :
142
143
  if (not f.is_dir()) or (not f.name.startswith(f'{prefix}_')) :
@@ -144,10 +145,22 @@ def main() :
144
145
  date_str = f.name.split('_')[-1]
145
146
  date = datetime.strptime(date_str, "%Y-%m-%d-%Hh%Mmin%Ss")
146
147
  if _date is None or date > _date :
147
- _date, efolder = date, f
148
- epath = efolder if efolder is not None else epath / (f'{prefix}_' + datetime.now().strftime("%Y-%m-%d-%Hh%Mmin%Ss"))
148
+ _date, base_folder = date, f
149
+ base_path = base_folder if base_folder is not None else epath / (f'{prefix}_' + datetime.now().strftime("%Y-%m-%d-%Hh%Mmin%Ss"))
150
+ epath = base_path / 'export_folder'
149
151
  if not epath.exists():
150
152
  os.makedirs(epath) #creates folders until end
153
+ if ipath != "None" :
154
+ ilink = base_path / 'import_folder'
155
+ if ilink.exists() or ilink.is_symlink():
156
+ ilink.unlink()
157
+ if os.name == "nt":
158
+ try :
159
+ ilink.symlink_to(ipath, ipath.is_dir())
160
+ except OSError :
161
+ print("Windows does not allow to create symlink, aborting. Consider using Windows in Developper mode.")
162
+ else:
163
+ ilink.symlink_to(ipath)
151
164
  md_file = epath / (name+'_log.md')
152
165
  html_file = epath / (name+'_log.html')
153
166
  else :
Binary file
File without changes
File without changes
File without changes
File without changes