On Sun, Sep 03, 2006 at 09:25:48PM -0500, Bo Peng wrote:

> > When LyX is run in place, lyx2lyx_version.py should be found in the
> > build_support dir. IIRC, the build_support dir is not correctly spotted
> > in a native Windows build. Run "lyx -dbg init" to check it.
> 
> I am not quite sure how autotools handle lyx2lyx_version.py but for
> scons, it is generated from lyx2lyx_version.py.in during installation.
> It is placed in the destimation directory while autotools put it in
> src/lib before copying to dest dir. That is to say, this file is only
> available after 'scons install', and will not present in src/lib.

When using autotools lyx2lyx_version.py is generated in lib/lyx2lyx
under the build directory. If you run lyx in place, this directory
is also taken into account and thus lyx2lyx_version.py is found:

$ ./lyx -dbg init
Setting debug level to init
Debugging `init' (Program initialisation)
Checking whether LyX is run in place... yes
<package>
        binary_dir /usr/local/src/lyx/lyx-1.5.0svn/build-cygwin/src/
        system_support /usr/local/src/lyx/lyx-1.5.0svn/lib/
        build_support /usr/local/src/lyx/lyx-1.5.0svn/build-cygwin/lib/
        user_support /c/work/.lyx-1.5.0svn/
        locale_dir /usr/local/share/locale
        document_dir /c/work
        temp_dir /tmp
        home_dir /c/work
</package>
...

$ cd ~
$ lyx -dbg init
Setting debug level to init
Debugging `init' (Program initialisation)
Checking whether LyX is run in place... no
<package>
        binary_dir /usr/local/bin/
        system_support /usr/local/share/lyx/
        build_support 
        user_support /c/work/.lyx/
        locale_dir /usr/local/share/locale/
        document_dir /c/work
        temp_dir /tmp
        home_dir /c/work
</package>
...

-- 
Enrico

Reply via email to