atomicshop 2.9.20__py3-none-any.whl → 2.9.21__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.
Potentially problematic release.
This version of atomicshop might be problematic. Click here for more details.
- atomicshop/__init__.py +1 -1
- atomicshop/permissions.py +3 -1
- atomicshop/wrappers/factw/install/pre_install_and_install_before_restart.py +1 -1
- {atomicshop-2.9.20.dist-info → atomicshop-2.9.21.dist-info}/METADATA +1 -1
- {atomicshop-2.9.20.dist-info → atomicshop-2.9.21.dist-info}/RECORD +8 -8
- {atomicshop-2.9.20.dist-info → atomicshop-2.9.21.dist-info}/LICENSE.txt +0 -0
- {atomicshop-2.9.20.dist-info → atomicshop-2.9.21.dist-info}/WHEEL +0 -0
- {atomicshop-2.9.20.dist-info → atomicshop-2.9.21.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
atomicshop/permissions.py
CHANGED
|
@@ -32,7 +32,8 @@ def is_admin() -> bool:
|
|
|
32
32
|
def request_sudo_on_ubuntu_by_python():
|
|
33
33
|
"""
|
|
34
34
|
The function tries to request sudo on Ubuntu for the user to enter the password, by executing python executable
|
|
35
|
-
with sudo.
|
|
35
|
+
with sudo. This is better approach than using the bash script to request sudo (request_sudo_on_ubuntu_by_bash)
|
|
36
|
+
because of the permission issues that can occur.
|
|
36
37
|
|
|
37
38
|
:return:
|
|
38
39
|
"""
|
|
@@ -50,6 +51,7 @@ def request_sudo_on_ubuntu_by_bash():
|
|
|
50
51
|
"""
|
|
51
52
|
The function tries to request sudo on Ubuntu for the user to enter the password, by executing appropriate
|
|
52
53
|
bash commands.
|
|
54
|
+
Better approach is to use 'request_sudo_on_ubuntu_by_python'.
|
|
53
55
|
|
|
54
56
|
:return:
|
|
55
57
|
"""
|
|
@@ -21,7 +21,7 @@ def install_before_restart(installation_directory: str, remove_existing_installa
|
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
23
|
if not permissions.is_admin():
|
|
24
|
-
permissions.
|
|
24
|
+
permissions.request_sudo_on_ubuntu_by_python()
|
|
25
25
|
print_api("This script requires root privileges...", color='red')
|
|
26
26
|
sys.exit(1)
|
|
27
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=Dbvo-BSvi1VC_wRdZCXOJZJPAsrNwgduCLS7_FJLUkk,123
|
|
2
2
|
atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
|
|
3
3
|
atomicshop/_create_pdf_demo.py,sha256=Yi-PGZuMg0RKvQmLqVeLIZYadqEZwUm-4A9JxBl_vYA,3713
|
|
4
4
|
atomicshop/_patch_import.py,sha256=ENp55sKVJ0e6-4lBvZnpz9PQCt3Otbur7F6aXDlyje4,6334
|
|
@@ -22,7 +22,7 @@ atomicshop/inspect_wrapper.py,sha256=sGRVQhrJovNygHTydqJj0hxES-aB2Eg9KbIk3G31apw
|
|
|
22
22
|
atomicshop/ip_addresses.py,sha256=Hvi4TumEFoTEpKWaq5WNF-YzcRzt24IxmNgv-Mgax1s,1190
|
|
23
23
|
atomicshop/keyboard_press.py,sha256=1W5kRtOB75fulVx-uF2yarBhW0_IzdI1k73AnvXstk0,452
|
|
24
24
|
atomicshop/pbtkmultifile_argparse.py,sha256=aEk8nhvoQVu-xyfZosK3ma17CwIgOjzO1erXXdjwtS4,4574
|
|
25
|
-
atomicshop/permissions.py,sha256
|
|
25
|
+
atomicshop/permissions.py,sha256=-UdSSbtFbUAksD37ec0OMDlHmt5hqmOBE8eb3M87V4I,3971
|
|
26
26
|
atomicshop/print_api.py,sha256=DhbCQd0MWZZ5GYEk4oTu1opRFC-b31g1VWZgTGewG2Y,11568
|
|
27
27
|
atomicshop/process.py,sha256=SXaqG8pzNkHvppPhuhixEIXSaqbeDlTUFLaS5bYSp54,14176
|
|
28
28
|
atomicshop/process_name_cmd.py,sha256=TNAK6kQZm5JKWzEW6QLqVHEG98ZLNDQiSS4YwDk8V8c,3830
|
|
@@ -177,7 +177,7 @@ atomicshop/wrappers/factw/fact_extractor/docker_image.py,sha256=jJAoJNQ4aoATjn3x
|
|
|
177
177
|
atomicshop/wrappers/factw/fact_extractor/get_extractor.py,sha256=2mfOAftHIlCcGt1s7MWdq7DsDCuI6wX3MtvcEZ4SK-0,756
|
|
178
178
|
atomicshop/wrappers/factw/install/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
179
179
|
atomicshop/wrappers/factw/install/install_after_restart.py,sha256=roM1W2hkDynpEKda55xd7AsZxodsFj8i4wmFGt_HHzA,1558
|
|
180
|
-
atomicshop/wrappers/factw/install/pre_install_and_install_before_restart.py,sha256=
|
|
180
|
+
atomicshop/wrappers/factw/install/pre_install_and_install_before_restart.py,sha256=mcdkrQtfLmh-k1pYcHwNuKiEmvZscXAyA_fScRXj7-U,2923
|
|
181
181
|
atomicshop/wrappers/factw/postgresql/__init__.py,sha256=xMBn2d3Exo23IPP2F_9-SXmOlhFbwWDgS9KwozSTjA0,162
|
|
182
182
|
atomicshop/wrappers/factw/postgresql/analysis.py,sha256=2Rxzy2jyq3zEKIo53z8VkjuslKE_i5mq2ZpmJAvyd6U,716
|
|
183
183
|
atomicshop/wrappers/factw/postgresql/file_object.py,sha256=VRiCXnsd6yDbnsE-TEKYPC-gkAgFVkE6rygRrJLQShI,713
|
|
@@ -230,8 +230,8 @@ atomicshop/wrappers/socketw/socket_server_tester.py,sha256=AhpurHJmP2kgzHaUbq5ey
|
|
|
230
230
|
atomicshop/wrappers/socketw/socket_wrapper.py,sha256=aXBwlEIJhFT0-c4i8iNlFx2It9VpCEpsv--5Oqcpxao,11624
|
|
231
231
|
atomicshop/wrappers/socketw/ssl_base.py,sha256=k4V3gwkbq10MvOH4btU4onLX2GNOsSfUAdcHmL1rpVE,2274
|
|
232
232
|
atomicshop/wrappers/socketw/statistics_csv.py,sha256=t3dtDEfN47CfYVi0CW6Kc2QHTEeZVyYhc57IYYh5nmA,826
|
|
233
|
-
atomicshop-2.9.
|
|
234
|
-
atomicshop-2.9.
|
|
235
|
-
atomicshop-2.9.
|
|
236
|
-
atomicshop-2.9.
|
|
237
|
-
atomicshop-2.9.
|
|
233
|
+
atomicshop-2.9.21.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
234
|
+
atomicshop-2.9.21.dist-info/METADATA,sha256=ULEEM5RFnH5ujlTIpeibu8wrSAIrsDlInfJWrfHMjNw,10423
|
|
235
|
+
atomicshop-2.9.21.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
236
|
+
atomicshop-2.9.21.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
237
|
+
atomicshop-2.9.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|