View Single Post
Old 12-03-2014, 06:08 PM   #66
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
Hi Doitsu,

Well that's not good. It works on my Mac OS X build.

On Mac it looks here:

_DIRS_TO_SEARCH.append("/Applications/Sigil.app/Contents/plugin_launchers/python")

On linux it will look in the following locations and can overide via an environment var:

_DIRS_TO_SEARCH.append("/usr/share/sigil/plugin_launchers/python")
_DIRS_TO_SEARCH.append("/usr/local/share/sigil/plugin_launchers/python")
_DIRS_TO_SEARCH.append("/opt/share/sigil/plugin_launchers/python")

On Windows it looks here:
Code:
    programfiles = os.environ.get("ProgramFiles")
    programfilesx86 = os.environ.get("ProgramFiles(x86)")
    if programfiles is not None:
        _DIRS_TO_SEARCH.append(os.path.join(programfiles,"Sigil","plugin_launchers","python"))
    if programfilesx86 is not None:
        _DIRS_TO_SEARCH.append(os.path.join(programfilesx86,"Sigil","plugin_launchers","python"))
Do you need to be admin/root to write to those locations on your machine? If so perhaps the python shutil.copy was simply ignored.

You might try an sudo on Linux to see if that fixes things or being Admin on Linux.

If that doesn't help, your best bet until I figure this out is manually copy the files. Don't forget the completely new file preferences.py.

Kevin


Quote:
Originally Posted by Doitsu View Post
I've just tested the launcher updater with DiapDealer's inofficial 0.8.2 Linux build and the official 64bit Windows 0.8.2 version. I got a 'Sigil launcher code updated successfully' message, but the Python files in /usr/local/share/sigil/plugin_launchers/python and C:\Program Files\Sigil\plugin_launchers\python weren't updated.

Last edited by KevinH; 12-03-2014 at 06:19 PM.
KevinH is offline   Reply With Quote