mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Resolve paths with path.resolve
This commit is contained in:
@@ -153,7 +153,7 @@ Fiber(function () {
|
||||
|
||||
// It is safer to use the absolute path as different tooling, such as
|
||||
// node-inspector, can get confused on relative urls.
|
||||
var absoluteFilePath = __dirname + "/" + fileInfo.path;
|
||||
var absoluteFilePath = path.resolve(__dirname, fileInfo.path);
|
||||
var func = require('vm').runInThisContext(wrapped, absoluteFilePath, true);
|
||||
func.call(global, Npm, Assets); // Coffeescript
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user