mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 10:00:47 +01:00
Better default paths
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import path from 'path';
|
||||
import {app} from '@electron/remote';
|
||||
import getPath from 'platform-folders';
|
||||
|
||||
export const dataPath = app.getPath('userData');
|
||||
export const SettingPath = path.join(dataPath, "settings.xml");
|
||||
|
||||
export const defaultOutputPath = path.join(getPath('videos') || "", "StickExporterTX");
|
||||
|
||||
export const blenderPath = path.join("assets", "blender", "blender");
|
||||
export const templatePath = path.join("assets", "template.blend");
|
||||
export const blenderScriptPath = path.join("assets", "blenderScript.py");
|
||||
@@ -1,5 +1,5 @@
|
||||
import formatXML from "xml-formatter";
|
||||
import {SettingPath} from './paths';
|
||||
import {SettingPath, defaultOutputPath} from './paths';
|
||||
import fs from "fs";
|
||||
import logger from "./logger";
|
||||
|
||||
@@ -12,8 +12,8 @@ const defaultSettings = {
|
||||
width: 540,
|
||||
stickDistance: 5,
|
||||
stickMode2: true,
|
||||
log: '"None"',
|
||||
output: "None"
|
||||
log: '',
|
||||
output: defaultOutputPath
|
||||
}
|
||||
|
||||
let loadedSuccessfully = true;
|
||||
|
||||
Reference in New Issue
Block a user