atomicshop 2.18.30__py3-none-any.whl → 2.18.32__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 CHANGED
@@ -1,4 +1,4 @@
1
1
  """Atomic Basic functions and classes to make developer life easier"""
2
2
 
3
3
  __author__ = "Den Kras"
4
- __version__ = '2.18.30'
4
+ __version__ = '2.18.32'
atomicshop/filesystem.py CHANGED
@@ -1716,9 +1716,7 @@ def create_ubuntu_desktop_shortcut(
1716
1716
  ):
1717
1717
  """
1718
1718
  Create a desktop shortcut on Ubuntu.
1719
-
1720
1719
  Either file_path or command must be specified.
1721
- If command is specified, working_directory must be specified.
1722
1720
 
1723
1721
  :param file_path: string, The file_path to execute when the shortcut is clicked.
1724
1722
  Example2: '/path/to/script.sh'
@@ -1745,15 +1743,13 @@ def create_ubuntu_desktop_shortcut(
1745
1743
  raise ValueError("Either 'file_path' or 'command' must be specified.")
1746
1744
  if command and file_path:
1747
1745
  raise ValueError("Only one of 'file_path' or 'command' can be specified.")
1748
- if command and not working_directory:
1749
- raise ValueError("Working directory must be specified if 'command' is specified.")
1750
1746
 
1751
1747
  from .permissions import ubuntu_permissions
1752
1748
 
1753
1749
  # Get the user's directory.
1754
1750
  desktop_dir = os.path.expanduser("~/Desktop")
1755
1751
 
1756
- if not working_directory:
1752
+ if not working_directory and file_path:
1757
1753
  working_directory = os.path.dirname(file_path)
1758
1754
 
1759
1755
  if not shortcut_name:
@@ -1769,7 +1765,7 @@ def create_ubuntu_desktop_shortcut(
1769
1765
  "Type=Application",
1770
1766
  f"Name={shortcut_name}",
1771
1767
  f"Exec={file_path}",
1772
- f"Path={working_directory}",
1768
+ f"Path={working_directory}" if working_directory else "",
1773
1769
  f"Icon={icon_path}" if icon_path else "",
1774
1770
  f"Terminal={'true' if terminal else 'false'}",
1775
1771
  f"Comment={comment}",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.18.30
3
+ Version: 2.18.32
4
4
  Summary: Atomic functions and classes to make developer life easier
5
5
  Author: Denis Kras
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- atomicshop/__init__.py,sha256=6a8s52oEErBoMqHlOVc95TxLFuoK8ZGvWHPZKkVUgAA,124
1
+ atomicshop/__init__.py,sha256=_U3jQmMLY0GEzKgxdVWbZY8fOJFW7Jo6tpT0QM-Nt-Y,124
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
@@ -14,7 +14,7 @@ atomicshop/dns.py,sha256=5Gimq_WY2arqg7BeGmR7P--fGfnH0Dsh8lrOt_H0jRY,6817
14
14
  atomicshop/domains.py,sha256=Rxu6JhhMqFZRcoFs69IoEd1PtYca0lMCG6F1AomP7z4,3197
15
15
  atomicshop/emails.py,sha256=I0KyODQpIMEsNRi9YWSOL8EUPBiWyon3HRdIuSj3AEU,1410
16
16
  atomicshop/file_types.py,sha256=-0jzQMRlmU1AP9DARjk-HJm1tVE22E6ngP2mRblyEjY,763
17
- atomicshop/filesystem.py,sha256=vXyc73_8ltcsuvPrmFor8QtehZs0Dg3_FvflAoZKT00,67857
17
+ atomicshop/filesystem.py,sha256=9ipi8n49r5FZDwE4ZWnT00jAXGostpauzaJotpqdiss,67696
18
18
  atomicshop/functions.py,sha256=pK8hoCE9z61PtWCxQJsda7YAphrLH1wxU5x-1QJP-sY,499
19
19
  atomicshop/get_process_list.py,sha256=8cxb7gKe9sl4R6H2yMi8J6oe-RkonTvCdKjRFqi-Fs4,6075
20
20
  atomicshop/get_process_name_cmd_dll.py,sha256=CtaSp3mgxxJKCCVW8BLx6BJNx4giCklU_T7USiCEwfc,5162
@@ -321,8 +321,8 @@ atomicshop/wrappers/socketw/statistics_csv.py,sha256=fgMzDXI0cybwUEqAxprRmY3lqbh
321
321
  atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
322
322
  atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
323
323
  atomicshop/wrappers/winregw/winreg_network.py,sha256=AENV88H1qDidrcpyM9OwEZxX5svfi-Jb4N6FkS1xtqA,8851
324
- atomicshop-2.18.30.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
325
- atomicshop-2.18.30.dist-info/METADATA,sha256=c7ZY3AG2mw1LVujTZo1Svw7dQLemtJdNBBLUE_7obZc,10631
326
- atomicshop-2.18.30.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
327
- atomicshop-2.18.30.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
328
- atomicshop-2.18.30.dist-info/RECORD,,
324
+ atomicshop-2.18.32.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
325
+ atomicshop-2.18.32.dist-info/METADATA,sha256=Q7QlfbvCcv0GKqy39I7UOlRciTWAf_5VK92VXFttpwc,10631
326
+ atomicshop-2.18.32.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
327
+ atomicshop-2.18.32.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
328
+ atomicshop-2.18.32.dist-info/RECORD,,