diff --git a/setup/installer/linux/freeze.py b/setup/installer/linux/freeze.py index d452911dd0..7353134393 100644 --- a/setup/installer/linux/freeze.py +++ b/setup/installer/linux/freeze.py @@ -153,7 +153,7 @@ class LinuxFreeze(Command): sys.resources_location = os.path.join(DIR_NAME, 'resources') dfv = os.environ.get('CALIBRE_DEVELOP_FROM', None) if dfv and os.path.exists(dfv): - sys.path.insert(0, dfv) + sys.path.insert(0, os.path.abspath(dfv)) executables = %(executables)s diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index c1e9da8b74..64004c70f8 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -242,8 +242,12 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI): ####################### Vanity ######################## self.vanity_template = _('
For help see the: User Manual'
'
')%'http://calibre-ebook.com/user_manual'
+ dv = os.environ.get('CALIBRE_DEVELOP_FROM', None)
+ v = __version__
+ if getattr(sys, 'frozen', False) and dv and os.path.abspath(dv) in sys.path:
+ v += '*'
self.vanity_template += _('%s: %s by Kovid Goyal '
- '%%(version)s
%%(device)s