do not check for package inclusions when not needed

speed up command execution
master
nixo 2020-06-22 11:25:46 +02:00
parent 47c8b748f2
commit e2780c7809
1 changed files with 2 additions and 0 deletions

View File

@ -214,6 +214,8 @@ function OrgBabelReload()
if isdefined(Main, pkg) && (isa(getfield(Main, pkg), Module) ||
isa(getfield(Main, pkg), UnionAll))
define_package_functions(Symbol("define_", pkg))
# Remove loaded packages from list to prevent multiple execution
filter!(x -> x != pkg, supported_packages)
end
end
end