From 9b3e53ee468ef2aaf490d7559a0fd43dca1b86a2 Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Mon, 29 May 2023 00:10:12 -0700 Subject: [PATCH] FIXED Syntax and Python Path ~ replaced tilde with $HOME --- NonSteamLaunchers.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index 555f2be..240871d 100644 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -4,7 +4,7 @@ chmod +x "$0" set -x -version=v2.81 +version=v2.8 check_for_updates() { # Set the URL to the GitHub API for the repository @@ -2180,15 +2180,17 @@ while pgrep steam > /dev/null; do sleep 1; done - +# Set the PYTHONPATH environment variable +export PYTHONPATH="$HOME/Downloads/NonSteamLaunchersInstallation/vdf:$PYTHONPATH" # Run the Python script to create a new entry for a Steam shortcut python -c " import sys import os -sys.path.insert(0, os.path.expanduser('~/Downloads/NonSteamLaunchersInstallation/vdf')) +sys.path.insert(0, os.path.expanduser('$HOME/Downloads/NonSteamLaunchersInstallation/vdf')) +print(sys.path) # Add this line to print the value of sys.path import vdf # Updated import -import subprocess + # Print the path to the file where the vdf module was loaded from print(vdf.__file__) @@ -2866,9 +2868,5 @@ with open('$shortcuts_vdf_path', 'wb') as f: - - - - # Delete NonSteamLaunchersInstallation subfolder in Downloads folder rm -rf ~/Downloads/NonSteamLaunchersInstallation