Skip to content

Commit

Permalink
Make assemblies output from compiling respect *compile-path*
Browse files Browse the repository at this point in the history
  • Loading branch information
dmiller committed Jan 21, 2012
1 parent 49c1e6a commit 4e4c64b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Clojure/Clojure/CljCompiler/Ast/GenContext.cs
Expand Up @@ -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);
}


Expand All @@ -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("/", ".");
}

Expand Down

0 comments on commit 4e4c64b

Please sign in to comment.