diff options
author | 2015-04-24 07:51:47 -0400 | |
---|---|---|
committer | 2015-04-24 07:51:47 -0400 | |
commit | dcffd1062445642f7ed903064fd993e25a3af260 (patch) | |
tree | 553bc7f549a6f57878e6bd438c64c53b872b5c0f /src | |
parent | a8076944892d087ce5fe79bc2924338375a60ea9 (diff) |
Allow file directives to contain slashes
Previously, adding a line such as "file /c/foo.css css/foo.css" would
cause the compiler to raise an InvalidArc exception.
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.sml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.sml b/src/settings.sml index b61759c1..cd2de8a9 100644 --- a/src/settings.sml +++ b/src/settings.sml @@ -876,7 +876,7 @@ fun setFilePath path = filePath := path fun addFile {Uri, LoadFromFilename} = let - val path = OS.Path.mkAbsolute {relativeTo = !filePath, path = LoadFromFilename} + val path = OS.Path.concat (!filePath, LoadFromFilename) in case SM.find (!files, Uri) of SOME (path', _) => |