Skip to content

Commit

Permalink
Delegate the python path to the profile which already sets it
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Apr 6, 2018
1 parent 368eb2b commit d43e81b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions startup/common/vnc.sh
Expand Up @@ -17,6 +17,8 @@
#----------------

. /etc/YaST2/XVersion
# set python path for websockify
. /root/.profile

#----[ setupVNCAuthentication ]------#
setupVNCAuthentication () {
Expand Down Expand Up @@ -92,9 +94,6 @@ startVNCServer () {
>/var/log/YaST2/vncserver.log 2>&1 &
xserver_pid=$!

# Python gets confused by the symlink games played in inst-sys
# so we must help it
export PYTHONPATH=`echo /usr/lib/python3*`/site-packages:$PYTHONPATH
websockify \
--web /usr/share/novnc \
5801 \
Expand Down

0 comments on commit d43e81b

Please sign in to comment.