15 lines
318 B
JavaScript
15 lines
318 B
JavaScript
const path = require('path');
|
|
|
|
const TEMP_DIR = '.temp';
|
|
const START_FILE = `${TEMP_DIR}/messages.start.xlf`;
|
|
|
|
function getAppPath(thePath) {
|
|
if (!thePath) return thePath;
|
|
return path.isAbsolute(thePath) ? thePath : path.join(process.cwd(), thePath);
|
|
}
|
|
|
|
module.exports = {
|
|
getAppPath,
|
|
TEMP_DIR,
|
|
START_FILE
|
|
} |