mirror of
https://github.com/cooperhammond/irs.git
synced 2025-03-23 16:25:06 +00:00
13 lines
318 B
Python
13 lines
318 B
Python
import sys
|
|
from os import path
|
|
|
|
if path.isfile(path.expanduser("~/.irs/config_.py")):
|
|
sys.path.append(path.expanduser("~/.irs")) # Add config to path
|
|
|
|
import config_ # from "~/.irs/config_.py"
|
|
|
|
CONFIG = config_.CONFIG
|
|
else:
|
|
config = open("irs/config_preset.py", "r").read()
|
|
CONFIG = eval(config)
|