Commit a95cfe50 authored by Medicean's avatar Medicean

Fix linux issue with process.env usage

parent 0e530517
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
// 添加源码目录到全局模块加载变量,以提供后边加载 // 添加源码目录到全局模块加载变量,以提供后边加载
const path = require('path'); const path = require('path');
const Module = require('module').Module; const Module = require('module').Module;
Module.globalPaths.push(path.join(process.env.AS_WORKDIR, 'source')); const {remote} = require('electron');
Module.globalPaths.push(path.join(remote.process.env.AS_WORKDIR, 'source'));
// 开始加载时间 // 开始加载时间
let APP_START_TIME = +new Date; let APP_START_TIME = +new Date;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment