This commit is contained in:
Kovid Goyal 2015-06-02 22:36:46 +05:30
parent 48b6e3d42f
commit cad47638f8

View File

@ -12,7 +12,7 @@ if 'CALIBRE_SHOW_DEPRECATION_WARNINGS' not in os.environ:
warnings.simplefilter('ignore', DeprecationWarning) warnings.simplefilter('ignore', DeprecationWarning)
try: try:
os.getcwdu() os.getcwdu()
except: except EnvironmentError:
os.chdir(os.path.expanduser('~')) os.chdir(os.path.expanduser('~'))
from calibre.constants import (iswindows, isosx, islinux, isfrozen, from calibre.constants import (iswindows, isosx, islinux, isfrozen,