]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/display.py
Allow for config files to be incomplete
[lightcards.git] / lightcards / display.py
index 8023ff37338fe273f00345cafe0591696fb189b8..cb52c8d93565952252ccda0e762002d6eaedbf32 100644 (file)
@@ -9,7 +9,7 @@ import sys
 import textwrap
 import time
 
-from . import runner, progress, parse, config
+from . import runner, progress, parse
 
 
 def panel_create(x, y):
@@ -231,13 +231,13 @@ class Menu:
 
 
 class Display:
-    def __init__(self, stack, headers, obj, view, args):
+    def __init__(self, stack, headers, obj, view, args, conf):
         self.stack = stack
         self.headers = headers
         self.obj = obj
         self.view = view
         self.input_file = args.inp[0]
-        self.config = config.read_file(args.config)
+        self.config = conf
 
     def run(self, stdscr):
         """Set important options that require stdscr before starting"""