comparison src/emacs.c @ 12383:e53c62fff24e

(init_cmdargs): Make Vinvocation_directory absolute if it isn't already.
author Richard M. Stallman <rms@gnu.org>
date Mon, 26 Jun 1995 04:39:42 +0000
parents 31e6e3137939
children c88a47bf2c1a
comparison
equal deleted inserted replaced
12382:63c03173db06 12383:e53c62fff24e
215 int yes = openp (Vexec_path, Vinvocation_name, 215 int yes = openp (Vexec_path, Vinvocation_name,
216 EXEC_SUFFIXES, &found, 1); 216 EXEC_SUFFIXES, &found, 1);
217 if (yes == 1) 217 if (yes == 1)
218 Vinvocation_directory = Ffile_name_directory (found); 218 Vinvocation_directory = Ffile_name_directory (found);
219 } 219 }
220
221 if (!NILP (Vinvocation_directory)
222 && NILP (Ffile_name_absolute_p (Vinvocation_directory)))
223 /* Emacs was started with relative path, like ./emacs */
224 Vinvocation_directory = Fexpand_file_name (Vinvocation_directory, Qnil);
220 225
221 Vinstallation_directory = Qnil; 226 Vinstallation_directory = Qnil;
222 227
223 if (!NILP (Vinvocation_directory)) 228 if (!NILP (Vinvocation_directory))
224 { 229 {