ClojureCLR

Enhance path probing for load to include the same folder as Clojure.dll

Details

  • Type: Enhancement Enhancement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

From Devin Garner:

... adding this line to GetFindFilePathsRaw in RT.cs ?

static IEnumerable<string> GetFindFilePathsRaw()

{ yield return Path.GetDirectoryName(typeof(RT).Assembly.Location); // new line }

Since RT is inside Clojure.dll, it will allow any file in the same folder as Clojure.dll to be found. The specific instance I found a need of this was an app that referenced Clojure.dll but the .exe was in a different folder than Cloure.dll. Somehow the .exe new where to find Clojure.dll, but nothing else.

Activity

Hide
David Miller added a comment -

Added path to RT.GetFindFilePathsRaw.
Commit: 60cb4c20

Show
David Miller added a comment - Added path to RT.GetFindFilePathsRaw. Commit: 60cb4c20
David Miller made changes -
Field Original Value New Value
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: