import { BaseData, DefaultBaseData } from "./BaseData";
import * as fs from "fs";
import * as path from "path";

interface PictData extends BaseData {
    PNG: Buffer
}
console.log(path.resolve("./"))
const DefaultPictData: PictData = {
    ...DefaultBaseData,
    PNG: fs.readFileSync(path.join(__dirname, "default.png"))
}

export { PictData, DefaultPictData }

import { BaseData, DefaultBaseData } from "./BaseData";
import * as fs from "fs";
import * as path from "path";

interface PictData extends BaseData {
    PNG: Buffer
}

const DefaultPictData: PictData = {
    ...DefaultBaseData,
    PNG: fs.readFileSync(require.resolve("./default.png"))
}

export { PictData, DefaultPictData }

Fix a bug where the default png is loaded from the wrong path
Fix a bug where the default png is loaded from the wrong path
