Quote:
Originally Posted by kovidgoyal
|
Thanks!
Fyi, the following settings are required by PyCharm to work on macOS (ie set by launcher "caliber-debug"). In the example below Calibre is cloned to "/Users/lars/src/calibre"
Code:
CloneRoot = /Users/lars/src/calibre
CALIBRE_DEVELOP_FROM = CloneRoot/src <======
PHP Code:
sys.path
=========
/Users/bob/lars/calibre/src (env "CALIBRE_DEVELOP_FROM")
/Applications/calibre.app/Contents/Resources/Python/lib/python2.7
/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/lib-dynload
/Applications/calibre.app/Contents/Resources/Python/site-packages
/Applications/calibre.app/Contents/Resources/Python
os.environ
==========
CALIBRE_DEVELOP_FROM=/Users/lars/src/calibre/src
FONTCONFIG_PATH=/Applications/calibre.app/Contents/Resources/fonts
FONTCONFIG_FILE=/Applications/calibre.app/Contents/Resources/fonts/fonts.conf
PYTHONIOENCODING=UTF-8
IPYTHONDIR=/Users/lars/Library/Caches/calibre/ipython
SSL_CERT_FILE=/Applications/calibre.app/Contents/Resources/resources/mozilla-ca-certs.pem
sys.exec_prefix
===============
/Applications/calibre.app/Contents/Resources/Python