mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
reflect change in master package.C.in
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9865 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a00e3f68d3
commit
dfad748f27
@ -414,7 +414,12 @@ string const abs_path_from_command_line(string const & command_line)
|
||||
// Does the grunt work for abs_path_from_binary_name()
|
||||
string const get_binary_path(string const & exe)
|
||||
{
|
||||
string const exe_path = os::internal_path(exe);
|
||||
// The executable may have been invoked either with or
|
||||
// without the .exe extension.
|
||||
// Ensure that it is present.
|
||||
string const as_internal_path = os::internal_path(exe);
|
||||
string const exe_path = suffixIs(as_internal_path, ".exe") ?
|
||||
as_internal_path : as_internal_path + ".exe";
|
||||
if (os::is_absolute_path(exe_path))
|
||||
return exe_path;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user