ivaldi 0.3.7__tar.gz → 0.3.8__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ivaldi
3
- Version: 0.3.7
3
+ Version: 0.3.8
4
4
  Summary: Create a portable version of your Python Project
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -3,6 +3,7 @@ import logging
3
3
  import os
4
4
  import platform
5
5
  import shutil
6
+ import subprocess
6
7
  import tomllib
7
8
  from pathlib import Path
8
9
 
@@ -29,6 +30,12 @@ def set_platform_home(settings):
29
30
  elif system == "Linux":
30
31
  home = user_home()
31
32
  settings.dirs.exec = home / ".local" / "bin"
33
+
34
+ echo = ["echo", "-c", f"export PATH='$PATH:{settings.dirs.exec!s}'", ">>"]
35
+ for profile in ["~/.zshrc", "~/.bash_profile", "~/.bashrc"]:
36
+ cmd = echo + [profile]
37
+ subprocess.run(cmd, shell=False, check=False)
38
+
32
39
  settings.dirs.app = Path(os.environ.get("XDG_DATA_HOME", home / ".local" / "share")) / settings.platform.location
33
40
  else:
34
41
  raise RuntimeError(f"Unsupported platform: {system}")
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ivaldi"
3
- version = "0.3.7"
3
+ version = "0.3.8"
4
4
  description = "Create a portable version of your Python Project"
5
5
  authors = [
6
6
  {name = "Fionn Tolster (@FionnT)"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes