addftool 0.1.1__py3-none-any.whl → 0.1.2__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.
- addftool/blob.py +5 -1
- {addftool-0.1.1.dist-info → addftool-0.1.2.dist-info}/METADATA +1 -1
- addftool-0.1.2.dist-info/RECORD +9 -0
- addftool-0.1.1.dist-info/RECORD +0 -9
- {addftool-0.1.1.dist-info → addftool-0.1.2.dist-info}/WHEEL +0 -0
- {addftool-0.1.1.dist-info → addftool-0.1.2.dist-info}/entry_points.txt +0 -0
- {addftool-0.1.1.dist-info → addftool-0.1.2.dist-info}/top_level.txt +0 -0
addftool/blob.py
CHANGED
|
@@ -30,7 +30,11 @@ def create_dir_for_current_user(dir_path, sudo=False):
|
|
|
30
30
|
if sudo:
|
|
31
31
|
command = "sudo " + command
|
|
32
32
|
execute_command(command)
|
|
33
|
-
|
|
33
|
+
username = os.environ.get("USER")
|
|
34
|
+
if username is None or username == "":
|
|
35
|
+
command = f"chown {os.getuid()} {dir_path}"
|
|
36
|
+
else:
|
|
37
|
+
command = f"chown $USER {dir_path}"
|
|
34
38
|
if sudo:
|
|
35
39
|
command = "sudo " + command
|
|
36
40
|
execute_command(command)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
addftool/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
addftool/blob.py,sha256=NZOItDyFUIdV1tfhJZJJBEzGy296CE5NCictTzP4OPc,8282
|
|
3
|
+
addftool/tool.py,sha256=EuKQ2t2InN7yB-_oYLcdsA7vRqzRGTunwIxplUSqEG0,2054
|
|
4
|
+
addftool/util.py,sha256=Q3A68vJDxgfeNiEFmk54HuMuworVndocXpSbVpvGMfc,362
|
|
5
|
+
addftool-0.1.2.dist-info/METADATA,sha256=gmakYu_DywA1K1z3yEoLN0h43nBUFbtNy0JmKcEbTgw,126
|
|
6
|
+
addftool-0.1.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
7
|
+
addftool-0.1.2.dist-info/entry_points.txt,sha256=h5TlQy4AQw-J55HqI7FRkIVRUfw-x3pStFWCoYtoCTM,78
|
|
8
|
+
addftool-0.1.2.dist-info/top_level.txt,sha256=jqj56-plrBbyzY0tIxB6wPzjAA8kte4hUlajyyQygN4,9
|
|
9
|
+
addftool-0.1.2.dist-info/RECORD,,
|
addftool-0.1.1.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
addftool/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
addftool/blob.py,sha256=gO3fXR0t4L0ZqOaHM33J3-HF7vz8pQ3IpXE1KrXZU8A,8135
|
|
3
|
-
addftool/tool.py,sha256=EuKQ2t2InN7yB-_oYLcdsA7vRqzRGTunwIxplUSqEG0,2054
|
|
4
|
-
addftool/util.py,sha256=Q3A68vJDxgfeNiEFmk54HuMuworVndocXpSbVpvGMfc,362
|
|
5
|
-
addftool-0.1.1.dist-info/METADATA,sha256=5reB8SX4clfLDPmuuojahelUDXxvbtKd73GWCUPCDFw,126
|
|
6
|
-
addftool-0.1.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
7
|
-
addftool-0.1.1.dist-info/entry_points.txt,sha256=h5TlQy4AQw-J55HqI7FRkIVRUfw-x3pStFWCoYtoCTM,78
|
|
8
|
-
addftool-0.1.1.dist-info/top_level.txt,sha256=jqj56-plrBbyzY0tIxB6wPzjAA8kte4hUlajyyQygN4,9
|
|
9
|
-
addftool-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|