Skip to content

Proposal 202502 #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion cli/src/gps-cli_kernels.adb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
with GNATCOLL.Projects;
with GNATCOLL.Utils;

with Ada.Environment_Variables;

package body GPS.CLI_Kernels is

---------------------
Expand Down Expand Up @@ -59,11 +61,14 @@ package body GPS.CLI_Kernels is
return GNATCOLL.VFS.Virtual_File
is
pragma Unreferenced (Self);
use Ada.Environment_Variables;

Dir : GNATCOLL.VFS.Virtual_File :=
Create (+GNATCOLL.Utils.Executable_Location);
begin
if Dir.Base_Dir_Name = "obj" then
if Exists ("GPS_ROOT") then
Dir := Create (+(Value ("GPS_ROOT")) & "/share/gnatstudio/");
elsif Dir.Base_Dir_Name = "obj" then
Dir := Create_From_Dir (Dir.Get_Parent.Get_Parent, "share/");
else
Dir := Create_From_Dir (Dir, "share/gnatstudio/");
Expand Down