From 72e48f8968e550e43d11e2768938929b4e820d41 Mon Sep 17 00:00:00 2001 From: aidant19 Date: Thu, 11 Jan 2024 15:19:23 -0500 Subject: [PATCH] config path changed to relative --- package-scripts/modules/ajexport.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package-scripts/modules/ajexport.js b/package-scripts/modules/ajexport.js index fb39cdf71..4fd6813b4 100644 --- a/package-scripts/modules/ajexport.js +++ b/package-scripts/modules/ajexport.js @@ -9,9 +9,8 @@ export async function script() { if (typeof AnimatedJava === 'undefined') { throw new Error('Failed to load Animated Java plugin before CLI plugin'); } - const paths = getConfigPaths( - 'C:\\Users\\Aidan\\Documents\\Media_Storage\\active_projects\\flowey_remaster\\omega-flowey-minecraft-remastered\\scripts\\config.json', - ); + console.log(process.cwd()); + const paths = getConfigPaths('./package-scripts/modules/config.json'); const modelDir = paths.ajmodelPath.concat('/'); console.log('Target paths: ', paths); const files = readdirSync(modelDir).filter((file) =>