import { join } from "node:path";

export const appDataDir = process.env.BMP_DATA_DIR;

export function dataPath(defaultPath: string, ...parts: string[]): string {
  return appDataDir ? join(appDataDir, ...parts) : defaultPath;
}
