From 7ddcc2d3714d8ebc59683d376ce5f103faef3e5a Mon Sep 17 00:00:00 2001 From: aminya Date: Sun, 16 Feb 2020 03:57:41 -0600 Subject: [PATCH] separate precompile_pather_multios --- src/bot/precompile_include.jl | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/bot/precompile_include.jl b/src/bot/precompile_include.jl index 6a52fd06d..c3067330b 100644 --- a/src/bot/precompile_include.jl +++ b/src/bot/precompile_include.jl @@ -25,6 +25,7 @@ end ################################################################ """ precompile_pather(package_name::String) + precompile_pather_multios(package_name::String) To get the path of precompile_package_name.jl file @@ -34,19 +35,15 @@ Written exclusively for SnoopCompile Github actions. precompile_path, precompileFolder = precompile_pather("MatLang") ``` """ -function precompile_pather(package_name::String, ismultios::Bool) - if !ismultios - return "\"../deps/SnoopCompile/precompile/precompile_$package_name.jl\"", +function precompile_pather(package_name::String) + return "\"../deps/SnoopCompile/precompile/precompile_$package_name.jl\"", "$(pwd())/deps/SnoopCompile/precompile/" - else - os = detectos()[1] - return "\"../deps/SnoopCompile/precompile/$os/precompile_$package_name.jl\"", - "$(pwd())/deps/SnoopCompile/precompile/$os" - end end - -precompile_pather(package_name::Symbol, ismultios::Bool) = precompile_pather(string(package_name)) -precompile_pather(package_name::Module, ismultios::Bool) = precompile_pather(string(package_name)) +function precompile_pather_multios(package_name::String) + os = detectos()[1] + return "\"../deps/SnoopCompile/precompile/$os/precompile_$package_name.jl\"", + "$(pwd())/deps/SnoopCompile/precompile/$os" +end ################################################################ """ create_includer_file(package_path::String, precompile_path::String)