@@ -96,7 +96,7 @@ export HomalgMatrix
96
96
97
97
include (" ../deps/homalg-project.jl" )
98
98
99
- global PATH_TO_SINGULAR = dirname (dirname (pathof (Singular)))
99
+ global SINGULAR_PATH = dirname (dirname (pathof (Singular)))
100
100
101
101
global HOMALG_EXTRA_PATHS = [ lib4ti2_jll. PATH_list ]
102
102
@@ -114,7 +114,7 @@ function UseExternalSingular( bool::Bool )
114
114
end
115
115
116
116
# # 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" ))
118
118
paths = GAP. Globals. Concatenation ( GAP. julia_to_gap ( [ singular ] ), GAP. Globals. GAPInfo. DirectoriesSystemPrograms )
119
119
paths = GAP. Globals. Unique ( paths )
120
120
GAP. Globals. GAPInfo. DirectoriesSystemPrograms = paths
@@ -129,7 +129,7 @@ function UseExternalSingular( bool::Bool )
129
129
LoadPackage ( " RingsForHomalg" )
130
130
131
131
# # 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" )
133
133
lib = [ " LD_LIBRARY_PATH=" * lib * " :\$ LD_LIBRARY_PATH" , " DYLD_LIBRARY_PATH=" * lib * " :\$ DYLD_LIBRARY_PATH" ]
134
134
GAP. Globals. HOMALG_IO_Singular. environment = GAP. julia_to_gap ( [GAP. julia_to_gap (lib[1 ]), GAP. julia_to_gap (lib[2 ])] )
135
135
0 commit comments