mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
FIXED Syntax and Python Path
~ replaced tilde with $HOME
This commit is contained in:
parent
bb53061726
commit
9b3e53ee46
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user