mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Change relative path handling
This commit is contained in:
@ -21,7 +21,9 @@ const cliArguments = yargs(hideBin(process.argv))
|
|||||||
|
|
||||||
// change all relative paths
|
// change all relative paths
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
process.chdir(path.dirname(process.execPath));
|
const directory = process.pkg ? path.dirname(process.execPath) : __dirname;
|
||||||
|
console.log(process.pkg ? 'Running from binary' : 'Running from source');
|
||||||
|
process.chdir(directory);
|
||||||
|
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
const compression = require('compression');
|
const compression = require('compression');
|
||||||
|
Reference in New Issue
Block a user