mirror of
https://github.com/cooperhammond/irs.git
synced 2025-07-03 15:18:14 +00:00
14 lines
333 B
Python
14 lines
333 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", "r").read()
|
|
print(config)
|
|
CONFIG = eval(config)
|