Merge pull request #36 from kepoorhampond/issue-35

Issue 35
This commit is contained in:
Kepoor Hampond 2017-06-28 20:23:29 -07:00 committed by GitHub
commit e5041446a9
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,8 @@
import ydl_binaries
from shutil import copyfile
import os
import inspect
import irs
def setup():
@ -9,4 +11,5 @@ def setup():
config_file = os.path.expanduser("~/.irs/config_.py")
if not os.path.isfile(config_file):
copyfile("irs/config_preset", config_file)
copyfile(os.path.dirname(inspect.getfile(irs)) + "/config_preset.py",
config_file)