Skip to content

Commit

Permalink
#3945 more helpful error message
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 15, 2023
1 parent 3753d53 commit 27ad5ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fs/bin/xpra
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

import sys

try:
import xpra
except ImportError as e:
sys.stderr.write("Error: xpra is not installed or you are using the wrong python interpreter\n")
sys.stderr.write(f" Python %s: {e}\n" % ".".join(str(x) for x in sys.version_info[:3]))
sys.exit(1)

from xpra.platform import init, set_default_name
set_default_name("Xpra")
init()
Expand Down

0 comments on commit 27ad5ad

Please sign in to comment.