-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright (c) 1998-2011,2014 Free Software Foundation, Inc. --
+-- Copyright (c) 1998-2014,2019 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
-- copy of this software and associated documentation files (the --
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control
--- $Revision: 1.27 $
--- $Date: 2014/09/13 19:10:18 $
+-- $Revision: 1.4 $
+-- $Date: 2019/09/08 00:14:54 $
-- Binding Version 01.00
------------------------------------------------------------------------------
-- Poor mans help system. This scans a sequential file for key lines and
end Check_File;
begin
- if Check_File ("/usr/share/AdaCurses/" & File_Name) then
- Open (F, In_File, "/usr/share/AdaCurses/" & File_Name);
+ if Check_File
+ ($THIS_DATADIR
+ & File_Name)
+ then
+ Open (F, In_File,
+ $THIS_DATADIR
+ & File_Name);
elsif Check_File (File_Name) then
Open (F, In_File, File_Name);
else
Put_Line (Standard_Error,
- "The file explain.txt was not found in the current directory."
+ "The file "
+ & File_Name
+ & " was not found in "
+ & $THIS_DATADIR
);
raise Name_Error;
end if;
end Sample.Explanation;
+-- vile:adamode