mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(cloudcmd) __dirname -> DIR
This commit is contained in:
parent
985c900b05
commit
36ad2c2bb7
1 changed files with 5 additions and 4 deletions
|
|
@ -7,10 +7,11 @@
|
|||
|
||||
fs = require('fs'),
|
||||
|
||||
DIR = '../lib/',
|
||||
DIR = __dirname + '/../',
|
||||
DIR_LIB = DIR + 'lib/',
|
||||
|
||||
Util = require(DIR + 'util'),
|
||||
CloudFunc = require(DIR + 'cloudfunc'),
|
||||
Util = require(DIR_LIB + 'util'),
|
||||
CloudFunc = require(DIR_LIB + 'cloudfunc'),
|
||||
|
||||
argv = process.argv,
|
||||
length = argv.length - 1,
|
||||
|
|
@ -55,7 +56,7 @@
|
|||
}
|
||||
|
||||
function readConfig(callback) {
|
||||
var path = __dirname + '/../json/config.json';
|
||||
var path = DIR + 'json/config.json';
|
||||
|
||||
Util.checkArgs(arguments, ['callback']);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue