-
Notifications
You must be signed in to change notification settings - Fork 11
/
BTools.wl
33 lines (27 loc) · 1.01 KB
/
BTools.wl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(* ::Subsection::Closed:: *)
(*Temp Loading Flag Code*)
Temp`PackageScope`BToolsLoading`Private`$PackageLoadData=
If[#===None, <||>, Replace[Quiet@Get@#, Except[_?OptionQ]-><||>]]&@
Append[
FileNames[
"LoadInfo."~~"m"|"wl",
FileNameJoin@{DirectoryName@$InputFileName, "Config"}
],
None
][[1]];
Temp`PackageScope`BToolsLoading`Private`$PackageLoadMode=
Lookup[Temp`PackageScope`BToolsLoading`Private`$PackageLoadData, "Mode", "Primary"];
Temp`PackageScope`BToolsLoading`Private`$DependencyLoad=
TrueQ[Temp`PackageScope`BToolsLoading`Private`$PackageLoadMode==="Dependency"];
(* ::Subsection:: *)
(*Main*)
If[Temp`PackageScope`BToolsLoading`Private`$DependencyLoad,
If[!TrueQ[Evaluate[Symbol["`BTools`PackageScope`Private`$LoadCompleted"]]],
Get@FileNameJoin@{DirectoryName@$InputFileName, "BToolsLoader.wl"}
],
If[!TrueQ[Evaluate[Symbol["BTools`PackageScope`Private`$LoadCompleted"]]],
<<BTools`BToolsLoader`,
BeginPackage["BTools`"];
EndPackage[];
]
]