Guard against people running us in deleted directories. Closes LP#1101208
This commit is contained in:
parent
9d2fb4b95c
commit
424c6e79cd
@ -20,7 +20,10 @@
|
||||
|
||||
import sys
|
||||
import os
|
||||
ORIGCWD = os.getcwd()
|
||||
try:
|
||||
ORIGCWD = os.getcwd()
|
||||
except OSError:
|
||||
ORIGCWD = os.path.expanduser("~")
|
||||
|
||||
# Check we have simple basics like Gtk+ and a valid $DISPLAY
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user