Normalize path delimiters
This commit is contained in:
parent
bb28e47117
commit
4d86f6449b
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ namespace arookas {
|
||||||
public override sunImportResult ResolveImport(string name, out sunScriptFile file) {
|
public override sunImportResult ResolveImport(string name, out sunScriptFile file) {
|
||||||
file = null;
|
file = null;
|
||||||
var fullPath = "";
|
var fullPath = "";
|
||||||
|
name = name.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
|
||||||
if (Path.IsPathRooted(name)) {
|
if (Path.IsPathRooted(name)) {
|
||||||
// if the path is absolute, just use it directly
|
// if the path is absolute, just use it directly
|
||||||
fullPath = name;
|
fullPath = name;
|
||||||
|
|
Loading…
Reference in a new issue