fix(all): CWD in Windows now working.
This commit is contained in:
		
							parent
							
								
									b96cde81d7
								
							
						
					
					
						commit
						6721c3dcc3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								boot.mjs
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								boot.mjs
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -19,7 +19,7 @@ console.debug(`botserver@${pjson.version}, botlib@${pjson.dependencies.botlib},
 | 
			
		|||
var now = () => {
 | 
			
		||||
  return new Date().toISOString().replace(/T/, ' ').replace(/\..+/, '') + ' UTC';
 | 
			
		||||
};
 | 
			
		||||
var __dirname = process.env.PWD;
 | 
			
		||||
var __dirname = process.env.PWD || process.cwd();
 | 
			
		||||
try {
 | 
			
		||||
  var run = () => {
 | 
			
		||||
    import('./dist/src/app.js').then((gb)=> gb.GBServer.run());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue