File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -652,14 +652,22 @@ public static void LoadSpecCode()
652
652
[ System . Diagnostics . CodeAnalysis . SuppressMessage ( "Microsoft.Reliability" , "CA2001:AvoidCallingProblematicMethods" , MessageId = "System.Reflection.Assembly.LoadFrom" ) ]
653
653
static void DoInit ( )
654
654
{
655
+ // Load clojure.core
656
+
655
657
//Stopwatch sw = new Stopwatch();
656
658
//sw.Start();
657
659
load ( "clojure/core" ) ;
658
- Assembly . LoadFrom ( "clojure.spec.alpha.dll" ) ;
659
- Assembly . LoadFrom ( "clojure.core.specs.alpha.dll" ) ;
660
660
//sw.Stop();
661
661
//Console.WriteLine("Initial clojure/core load: {0} milliseconds.", sw.ElapsedMilliseconds);
662
662
663
+ // load spec
664
+ {
665
+ string baseDir = AppDomain . CurrentDomain . BaseDirectory ;
666
+
667
+ Assembly . LoadFile ( Path . Combine ( baseDir , "clojure.spec.alpha.dll" ) ) ;
668
+ Assembly . LoadFile ( Path . Combine ( baseDir , "clojure.core.specs.alpha.dll" ) ) ;
669
+ }
670
+
663
671
PostBootstrapInit ( ) ;
664
672
665
673
CHECK_SPECS = RT . instrumentMacros ;
You can’t perform that action at this time.
0 commit comments