mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-13 00:10:27 +00:00
chore: 进度提交
This commit is contained in:
14
src/common/framework/napcat.ts
Normal file
14
src/common/framework/napcat.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import path, { dirname } from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
export class NapCatPathWrapper {
|
||||
binaryPath: string;
|
||||
logsPath: string;
|
||||
configPath: string;
|
||||
|
||||
constructor(mainPath: string = dirname(fileURLToPath(import.meta.url))) {
|
||||
this.binaryPath = mainPath;
|
||||
this.logsPath = path.join(this.binaryPath, "logs");
|
||||
this.configPath = path.join(this.binaryPath, "config");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user