Skip to content

Commit

Permalink
Avoid exception when calling Builtins.ApplicationDirectory in web con…
Browse files Browse the repository at this point in the history
…text.

git-svn-id: https://ironscheme.svn.codeplex.com/svn@113671 2327b42d-5241-43d6-9e2a-de5ac946f064
  • Loading branch information
leppie committed Apr 10, 2015
1 parent 97b7317 commit 20dba55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IronScheme/IronScheme/Runtime/Builtins.cs
Expand Up @@ -320,7 +320,7 @@ public static string ApplicationDirectory
{
get
{
return Path.GetDirectoryName(typeof(Builtins).Assembly.CodeBase).Replace("file:\\", "").Replace("file:", "");
return Path.GetDirectoryName(typeof(Builtins).Assembly.CodeBase.Replace("file:///","")).Replace("file:\\", "").Replace("file:", "");
}
}

Expand Down

0 comments on commit 20dba55

Please sign in to comment.