corelp 1.0.28__py3-none-any.whl → 1.0.30__py3-none-any.whl
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.
- corelp/__init__.py +1 -1
- corelp/icon_pythonLP.png +0 -0
- corelp/modules/Section_LP/Section.py +3 -3
- corelp/modules/main_LP/main.py +21 -8
- corelp/pythonLP.png:Zone.Identifier +0 -0
- {corelp-1.0.28.dist-info → corelp-1.0.30.dist-info}/METADATA +1 -1
- {corelp-1.0.28.dist-info → corelp-1.0.30.dist-info}/RECORD +8 -7
- corelp/icon_pythonLP.ico +0 -0
- {corelp-1.0.28.dist-info → corelp-1.0.30.dist-info}/WHEEL +0 -0
corelp/__init__.py
CHANGED
|
@@ -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.
|
|
22
|
+
icon = PathlibPath(__file__).parent / "icon_pythonLP.png"
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
corelp/icon_pythonLP.png
ADDED
|
Binary file
|
|
@@ -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
|
|
159
|
+
link_to.symlink_to(link_from)
|
|
160
160
|
print('...created\n')
|
|
161
161
|
|
|
162
162
|
|
corelp/modules/main_LP/main.py
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
148
|
-
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
corelp/__init__.py,sha256=
|
|
2
|
-
corelp/icon_pythonLP.
|
|
1
|
+
corelp/__init__.py,sha256=JMGz_b8Xz6heIsLVRtZpfpZ1DMF_Vsi-Xw8l7pnqy6c,684
|
|
2
|
+
corelp/icon_pythonLP.png,sha256=pg386kYEKGspDDRbRF0alOmHXPEm0geMoYIPaxEfQ_o,3805
|
|
3
3
|
corelp/modules/Path_LP/Path.py,sha256=wfvO1DuewIUSEA9_g66O5nCEp95Pr5XM-yxaOOEimTs,2418
|
|
4
4
|
corelp/modules/Path_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
corelp/modules/Path_LP/test_Path.py,sha256=8VSn9VVbhc3EDxXpxQV18rnAq_T2a1uuoRFKdmsqX-I,715
|
|
6
|
-
corelp/modules/Section_LP/Section.py,sha256=
|
|
6
|
+
corelp/modules/Section_LP/Section.py,sha256=5h7DokassAh08iUqb2tCeEBOzsVLHD6HBuVhPM-iGIg,6067
|
|
7
7
|
corelp/modules/Section_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
corelp/modules/Section_LP/test_Section.py,sha256=zcrIbJueMDT90t0_M-RD40IWpkx4OT7Q52tE6HzbfIo,812
|
|
9
9
|
corelp/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -19,7 +19,7 @@ corelp/modules/kwargsself_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
|
|
|
19
19
|
corelp/modules/kwargsself_LP/kwargsself.py,sha256=24HVn1G7ALdhQFSLT0U2dVjVzop6c2s-nr7DrMK53iw,1865
|
|
20
20
|
corelp/modules/kwargsself_LP/test_kwargsself.py,sha256=BaqGu0bqFuFemiYUEDMviFfegTb0aF6lmeFm3KJa8sw,1241
|
|
21
21
|
corelp/modules/main_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
|
-
corelp/modules/main_LP/main.py,sha256=
|
|
22
|
+
corelp/modules/main_LP/main.py,sha256=vqjHj_EpUgG8RjoGxdgw8zjYz66U3lHMa5To7WURGzo,10044
|
|
23
23
|
corelp/modules/main_LP/test_main.py,sha256=mxL645pZdkJ8J5MFdj0K-z8xRCGKQ0zw1NvmW3iPGB4,1741
|
|
24
24
|
corelp/modules/print_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
corelp/modules/print_LP/print.py,sha256=7TYjAGypT_TI0UHmL9F8zPL7gjFfJn2DnCpx0cu4IGM,8565
|
|
@@ -41,8 +41,9 @@ corelp/modules/user_inputs_LP/test_user_inputs.py,sha256=lK8pYm5q5ob9ry3T-gU3J_-
|
|
|
41
41
|
corelp/modules/user_inputs_LP/user_inputs.py,sha256=2lGkIl2dA_1mcDB8ExvJg4xlcx26viKi878M9ml0MUo,1964
|
|
42
42
|
corelp/modules.json,sha256=ZQ8BMU8X2u71wfVj_AufwOoJUPdaxU_AHn7Ohbkp-Pc,3122
|
|
43
43
|
corelp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
|
+
corelp/pythonLP.png:Zone.Identifier,sha256=uVLSTPcBvE56fSHhroXGEYJOgFeaiYNsDLSbGTRGzP4,25
|
|
44
45
|
corelp/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
45
46
|
corelp/scripts.json,sha256=RBNvo1WzZ4oRRq0W9-hknpT7T8If536DEMBg9hyq_4o,2
|
|
46
|
-
corelp-1.0.
|
|
47
|
-
corelp-1.0.
|
|
48
|
-
corelp-1.0.
|
|
47
|
+
corelp-1.0.30.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
48
|
+
corelp-1.0.30.dist-info/METADATA,sha256=sWtHH_RM39YAwkzsfEdBdRdCKfceoqqi-01w-igjnWM,1747
|
|
49
|
+
corelp-1.0.30.dist-info/RECORD,,
|
corelp/icon_pythonLP.ico
DELETED
|
Binary file
|
|
File without changes
|