Skip to content

Commit a30c7fa

Browse files
renamed global PATH_TO_SINGULAR -> SINGULAR_PATH
1 parent 64b83d5 commit a30c7fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HomalgProject.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export HomalgMatrix
9696

9797
include("../deps/homalg-project.jl")
9898

99-
global PATH_TO_SINGULAR = dirname(dirname(pathof(Singular)))
99+
global SINGULAR_PATH = dirname(dirname(pathof(Singular)))
100100

101101
global HOMALG_EXTRA_PATHS = [ lib4ti2_jll.PATH_list ]
102102

@@ -114,7 +114,7 @@ function UseExternalSingular( bool::Bool )
114114
end
115115

116116
## add ~/.julia/.../Singular/deps/usr/bin/ to GAPInfo.DirectoriesSystemPrograms
117-
singular = GAP.julia_to_gap(joinpath(PATH_TO_SINGULAR,"deps","usr","bin"))
117+
singular = GAP.julia_to_gap(joinpath(SINGULAR_PATH,"deps","usr","bin"))
118118
paths = GAP.Globals.Concatenation( GAP.julia_to_gap( [ singular ] ), GAP.Globals.GAPInfo.DirectoriesSystemPrograms )
119119
paths = GAP.Globals.Unique( paths )
120120
GAP.Globals.GAPInfo.DirectoriesSystemPrograms = paths
@@ -129,7 +129,7 @@ function UseExternalSingular( bool::Bool )
129129
LoadPackage( "RingsForHomalg" )
130130

131131
## add ~/.julia/.../Singular/deps/usr/lib/ to LD_LIBRARY_PATH and DYLD_LIBRARY_PATH
132-
lib = joinpath(PATH_TO_SINGULAR,"deps","usr","lib")
132+
lib = joinpath(SINGULAR_PATH,"deps","usr","lib")
133133
lib = [ "LD_LIBRARY_PATH=" * lib * ":\$LD_LIBRARY_PATH", "DYLD_LIBRARY_PATH=" * lib * ":\$DYLD_LIBRARY_PATH" ]
134134
GAP.Globals.HOMALG_IO_Singular.environment = GAP.julia_to_gap( [GAP.julia_to_gap(lib[1]), GAP.julia_to_gap(lib[2])] )
135135

0 commit comments

Comments
 (0)