Hopeful fix

This commit is contained in:
Kepoor Hampond 2017-06-28 20:09:48 -07:00
parent b7daa1f76f
commit 88c4c4a890
2 changed files with 8 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,9 @@ def setup():
config_file = os.path.expanduser("~/.irs/config_.py")
if not os.path.isfile(config_file):
copyfile("irs/config_preset", config_file)
print("\n")
os.system("ls " + os.path.dirname(inspect.getfile(irs)))
print(inspect.getfile(irs))
print("\n")
copyfile(os.path.dirname(inspect.getfile(irs)) + "/config_preset.py",
config_file)