kopia lustrzana https://github.com/c9/core
				
				
				
			set node_path via fsOptions
							rodzic
							
								
									06efdc5cf0
								
							
						
					
					
						commit
						bb6213e203
					
				| 
						 | 
				
			
			@ -65,9 +65,14 @@ function logToFile(message){
 | 
			
		|||
 | 
			
		||||
module.exports = function setup(fsOptions) {
 | 
			
		||||
    var pty;
 | 
			
		||||
    if (fsOptions.nodePath) {
 | 
			
		||||
        process.env.NODE_PATH = fsOptions.nodePath;
 | 
			
		||||
        require("module")._initPaths();
 | 
			
		||||
    }
 | 
			
		||||
    if (!fsOptions.nopty) {
 | 
			
		||||
        // on darwin trying to load binary for a wrong version crashes the process
 | 
			
		||||
        [process.env.HOME + "/.c9/node_modules/pty.js", "pty.js", "pty.nw.js"].some(function(p) {
 | 
			
		||||
        [(fsOptions.nodePath || process.env.HOME + "/.c9/node_modules") + "/pty.js",
 | 
			
		||||
            "pty.js", "pty.nw.js"].some(function(p) {
 | 
			
		||||
            try {
 | 
			
		||||
                pty = require(p);
 | 
			
		||||
                return true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -67,7 +67,7 @@
 | 
			
		|||
        "c9.ide.language.javascript.tern": "#2b0bb024da",
 | 
			
		||||
        "c9.ide.language.javascript.infer": "#cfec494a3c",
 | 
			
		||||
        "c9.ide.language.jsonalyzer": "#ba3e0d298c",
 | 
			
		||||
        "c9.ide.collab": "#532e8d7b5d",
 | 
			
		||||
        "c9.ide.collab": "#d978678519",
 | 
			
		||||
        "c9.ide.local": "#a9703b630c",
 | 
			
		||||
        "c9.ide.find": "#6cc6d3379d",
 | 
			
		||||
        "c9.ide.find.infiles": "#72582de3cd",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue