diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-08-06 12:02:25 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-08-06 12:03:42 -0700 |
commit | 02ce39750d466a396c4ff7f3bd83961ec4f52cad (patch) | |
tree | 31c99cac2d090923eb8bcb6c0459915f92e78ef2 /src/library_path.js | |
parent | 234133b88ff254bc125a7b17ef10c146a802ea3b (diff) |
fix for process.cwd usage
Diffstat (limited to 'src/library_path.js')
-rw-r--r-- | src/library_path.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library_path.js b/src/library_path.js index 3df6ca5b..feec1e68 100644 --- a/src/library_path.js +++ b/src/library_path.js @@ -1,4 +1,5 @@ mergeInto(LibraryManager.library, { + $PATH__deps: ['$FS'], $PATH: { // split a filename into [root, dir, basename, ext], unix version // 'root' is just a slash, or nothing. @@ -80,7 +81,7 @@ mergeInto(LibraryManager.library, { var resolvedPath = '', resolvedAbsolute = false; for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) { - var path = (i >= 0) ? arguments[i] : process.cwd(); + var path = (i >= 0) ? arguments[i] : FS.cwd(); // Skip empty and invalid entries if (typeof path !== 'string') { throw new TypeError('Arguments to path.resolve must be strings'); |