Skip to content

Commit b76dfcb

Browse files
author
Aaron O'Mullan
committed
Use os.tmpDir() as addons tempPath, making it OS independant
1 parent a5178ca commit b76dfcb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/codebox.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// Requires
2-
var _ = require('underscore');
32
var Q = require('q');
3+
var _ = require('underscore');
4+
5+
var os = require('os');
46
var path = require('path');
7+
58
var engineer = require('engineer');
69

710
var start = function(config) {
@@ -36,7 +39,7 @@ var start = function(config) {
3639
// Base path
3740
'path': process.env.WORKSPACE_ADDONS_DIR || path.resolve(__dirname + '/../.addons'),
3841
'defaultsPath': process.env.WORKSPACE_ADDONS_DEFAULTS_DIR || path.resolve(__dirname + '/../addons'),
39-
'tempPath': process.env.WORKSPACE_ADDONS_TEMP_DIR || '/tmp/codebox-addons'
42+
'tempPath': process.env.WORKSPACE_ADDONS_TEMP_DIR || os.tmpDir()
4043
}
4144
});
4245

0 commit comments

Comments
 (0)