1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 04:07:58 +01:00

another attempt to fix getcwd on windows

This commit is contained in:
Martin Stubenschrott
2007-12-13 13:50:55 +00:00
parent 24adb1bb92
commit aaa317b143

View File

@@ -98,7 +98,7 @@ vimperator.IO = function () //{{{
var file = Components.classes["@mozilla.org/file/local;1"]. var file = Components.classes["@mozilla.org/file/local;1"].
createInstance(Components.interfaces.nsILocalFile); createInstance(Components.interfaces.nsILocalFile);
var dirs = [cwd, "$PWD", "~"]; var dirs = WINDOWS ? [cwd, "~"] : [cwd, "$PWD", "~"];
for (var i = 0; i < dirs.length; i++) for (var i = 0; i < dirs.length; i++)
{ {
if (!dirs[i]) if (!dirs[i])