Skip to content

Commit

Permalink
FIXED Syntax and Python Path
Browse files Browse the repository at this point in the history
~ replaced tilde with $HOME
  • Loading branch information
moraroy authored May 29, 2023
1 parent bb53061 commit 9b3e53e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions NonSteamLaunchers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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__)
Expand Down Expand Up @@ -2866,9 +2868,5 @@ with open('$shortcuts_vdf_path', 'wb') as f:







# Delete NonSteamLaunchersInstallation subfolder in Downloads folder
rm -rf ~/Downloads/NonSteamLaunchersInstallation

0 comments on commit 9b3e53e

Please sign in to comment.