mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 09:02:01 +01:00
12 lines
275 B
JavaScript
12 lines
275 B
JavaScript
const argv = require('yargs').argv
|
|
const path = require('path')
|
|
const fs = require('fs')
|
|
|
|
const config_path = path.resolve(argv.config || '/etc/gancio_config.json')
|
|
|
|
let config = {}
|
|
if (fs.existsSync(config_path)) {
|
|
config = require(config_path)
|
|
}
|
|
|
|
module.exports = config
|