[Sciviews-commits] r128 - in komodo/SciViews-K/content/js: . tools
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu May 7 14:55:55 CEST 2009
Author: prezez
Date: 2009-05-07 14:55:54 +0200 (Thu, 07 May 2009)
New Revision: 128
Modified:
komodo/SciViews-K/content/js/commands.js
komodo/SciViews-K/content/js/tools/
komodo/SciViews-K/content/js/tools/io.js
Log:
fixed syntax error in "sv.io.makePath" and starting R on Linux
Modified: komodo/SciViews-K/content/js/commands.js
===================================================================
--- komodo/SciViews-K/content/js/commands.js 2009-05-05 07:31:34 UTC (rev 127)
+++ komodo/SciViews-K/content/js/commands.js 2009-05-07 12:55:54 UTC (rev 128)
@@ -152,7 +152,7 @@
"Rinitdir=" + sv.io.makePath(isWin? "Pers" : "Home"),
"koServe=" + sv.prefs.getString("sciviews.client.socket", "8888"),
"koPort=" + sv.prefs.getString("sciviews.server.socket", "7052"),
- "koAppFile=" + sv.io.makePath("resource:app", ["komodo" + (isWin? ".exe" : "")])
+ "koAppFile=" + sv.io.makePath("CurProcD", ["komodo" + (isWin? ".exe" : "")])
];
var cwd = sv.io.makePath("ProfD", ["extensions", "sciviewsk at sciviews.org", "templates"]);
@@ -192,14 +192,7 @@
mode = "new-console";
}
- //for (i in env) {
- // try {
- // env[i] = ko.interpolate.interpolateStrings(env[i]);
- // } catch (e) {
- // alert(e + "\n" + env[i]);
- // return;
- // }
- //}
+
ko.run.runCommand(window, command, cwd, env.join("\n"), false,
false, false, mode, false, false, false);
};
Property changes on: komodo/SciViews-K/content/js/tools
___________________________________________________________________
Name: svn:ignore
+ !*
*-dev.*
Modified: komodo/SciViews-K/content/js/tools/io.js
===================================================================
--- komodo/SciViews-K/content/js/tools/io.js 2009-05-05 07:31:34 UTC (rev 127)
+++ komodo/SciViews-K/content/js/tools/io.js 2009-05-07 12:55:54 UTC (rev 128)
@@ -137,7 +137,7 @@
//https://developer.mozilla.org/En/Code_snippets:File_I/O
// eg. ProfD, TmpD, Home, Desk, Progs
// pathComponents - [optional] array of directiory/file names to append
-function sv.io.makePath(specialDir, pathComponents) {
+sv.io.makePath = function (specialDir, pathComponents) {
var file;
if (specialDir) {
file = Components.classes["@mozilla.org/file/directory_service;1"].
More information about the Sciviews-commits
mailing list