changeset 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 63c03173db06
children 13dd2463be12
files src/emacs.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Mon Jun 26 03:54:38 1995 +0000
+++ b/src/emacs.c	Mon Jun 26 04:39:42 1995 +0000
@@ -218,6 +218,11 @@
 	Vinvocation_directory = Ffile_name_directory (found);
     }
 
+  if (!NILP (Vinvocation_directory)
+      && NILP (Ffile_name_absolute_p (Vinvocation_directory)))
+    /* Emacs was started with relative path, like ./emacs  */
+    Vinvocation_directory = Fexpand_file_name (Vinvocation_directory, Qnil);
+
   Vinstallation_directory = Qnil;
 
   if (!NILP (Vinvocation_directory))