webtty: don't hardcode paths.
This commit is contained in:
parent
e0b1aa3668
commit
5b85a979e0
1 changed files with 4 additions and 3 deletions
|
|
@ -1,12 +1,13 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
var localModules = '/usr/lib/node_modules/';
|
||||
var http = require('http');
|
||||
var url = require('url');
|
||||
var path = require('path');
|
||||
var fs = require('fs');
|
||||
var pty = require("/usr/local/lib/node_modules/pty.js");
|
||||
var pty = require(path.join(localModules, "pty.js"));
|
||||
|
||||
var serveStaticRoot = "/home/elwin/hk/nodejs/rlg/s/";
|
||||
var ptyhelp = "/home/elwin/hk/nodejs/rlg/ptyhelper";
|
||||
var serveStaticRoot = fs.realpathSync(".");
|
||||
var sessions = {};
|
||||
|
||||
var env_dontuse = {"TMUX": true, "TMUX_PANE": true};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue