|  | @@ -8,12 +8,14 @@ mod store;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  use comm::{Channel, Message};
 | 
	
		
			
				|  |  |  use config::Config;
 | 
	
		
			
				|  |  | +use std::env;
 | 
	
		
			
				|  |  |  use std::sync::Arc;
 | 
	
		
			
				|  |  |  use std::sync::mpsc;
 | 
	
		
			
				|  |  |  use std::thread;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  fn main() {
 | 
	
		
			
				|  |  | -    let cfg = config::load("./panel.toml");
 | 
	
		
			
				|  |  | +    let config_path = env::args().nth(1).unwrap_or("./panel.toml".to_string());
 | 
	
		
			
				|  |  | +    let cfg = config::load(&config_path);
 | 
	
		
			
				|  |  |      let cfg = Arc::new(cfg);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      let (tx, rx) = mpsc::channel::<Message>();
 |