Author: ruschein
Date: 2010-07-28 10:07:12 -0700 (Wed, 28 Jul 2010)
New Revision: 21046
Modified:
cytoscape/trunk/src/cytoscape/CytoscapeInit.java
Log:
Now hopefully works on UNIX and Windows.
Modified: cytoscape/trunk/src/cytoscape/CytoscapeInit.java
===================================================================
--- cytoscape/trunk/src/cytoscape/CytoscapeInit.java 2010-07-28 17:02:03 UTC
(rev 21045)
+++ cytoscape/trunk/src/cytoscape/CytoscapeInit.java 2010-07-28 17:07:12 UTC
(rev 21046)
@@ -456,9 +456,10 @@
// The following code has problem to
load session file from command line on Windows
// because prefix driver letter "C:\"
or "D:\\" was removed from the absolute path
final File shortName = new
File(sessionFile);
- final String absolutePath =
shortName.getAbsolutePath();
+ String absolutePath =
shortName.getAbsolutePath();
+ if (absolutePath.startsWith("/"))
+ absolutePath = "/" +
absolutePath;
-
System.out.println("absolutePath =
"+absolutePath);
final URL sessionURL = new URL("file:/"
+ absolutePath.replace("%", "%25"));
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.