1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 03:57:59 +01:00

add 'exrc'

This commit is contained in:
Doug Kearns
2008-10-21 15:45:57 +00:00
parent b58c04200f
commit 2141d475f8
6 changed files with 27 additions and 4 deletions

View File

@@ -478,10 +478,12 @@ function IO() //{{{
return dirs;
},
getRCFile: function ()
getRCFile: function (dir)
{
var rcFile1 = ioManager.getFile("~/." + EXTENSION_NAME + "rc");
var rcFile2 = ioManager.getFile("~/_" + EXTENSION_NAME + "rc");
dir = dir || "~";
let rcFile1 = ioManager.getFile(joinPaths(dir, "/." + EXTENSION_NAME + "rc"));
let rcFile2 = ioManager.getFile(joinPaths(dir, "/_" + EXTENSION_NAME + "rc"));
if (WINDOWS)
[rcFile1, rcFile2] = [rcFile2, rcFile1];