diff --git a/Clojure/Clojure/CljCompiler/Ast/GenContext.cs b/Clojure/Clojure/CljCompiler/Ast/GenContext.cs index 4729d49fd..bcda86fbc 100644 --- a/Clojure/Clojure/CljCompiler/Ast/GenContext.cs +++ b/Clojure/Clojure/CljCompiler/Ast/GenContext.cs @@ -71,7 +71,8 @@ public static GenContext CreateWithInternalAssembly(string assyName, bool create public static GenContext CreateWithExternalAssembly(string assyName, string extension, bool createDynInitHelper) { - return new GenContext(assyName, extension, System.IO.Directory.GetCurrentDirectory(),createDynInitHelper); + string path = Compiler.CompilePathVar.deref() as string; + return new GenContext(assyName, extension, path ?? System.IO.Directory.GetCurrentDirectory(),createDynInitHelper); } @@ -85,7 +86,7 @@ private GenContext(string assyName, string extension, string directory, bool cre #endif if (directory != null) { - if (directory.Length > 0 && directory != ".") + if (directory.Length > 0 ) //&& directory != ".") assyName = assyName.Replace("/", "."); }