Skip to content
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

1st shot at suppressing the Polymake banner in Oscar #247

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions src/Polymake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ end
# Load Cxx stuff and init
##########################

__is_root_module(m=@__MODULE__) = haskey(Base.package_locks, Base.PkgId(m))

Sys.isapple() || Sys.islinux() || error("System is not supported!")

deps_dir = joinpath(@__DIR__, "..", "deps")
Expand All @@ -56,8 +58,7 @@ function __init__()
end

try
show_banner = isinteractive() &&
!any(x->x.name in ["Oscar"], keys(Base.package_locks))
show_banner = isinteractive() && __is_root_module()

initialize_polymake(show_banner)
if !show_banner
Expand Down
1 change: 0 additions & 1 deletion src/generate_applications.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ isdir(generated_dir) || mkpath(generated_dir)
for (app, mod) in appname_module_dict
json_file = joinpath(json_dir, "$app.json")
@assert isfile(json_file)
@info "Generating module $mod"
@eval $(Polymake.Meta.jl_code(Polymake.Meta.PolymakeApp(mod, json_file)))
@eval export $mod
end