mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	Clean up per landscape
This commit is contained in:
		
				
					committed by
					
						
						Davis Goglin
					
				
			
			
				
	
			
			
			
						parent
						
							9b40c0860f
						
					
				
				
					commit
					7a58109928
				
			@@ -3,11 +3,8 @@
 | 
			
		||||
from __future__ import absolute_import
 | 
			
		||||
 | 
			
		||||
import argparse
 | 
			
		||||
import sys
 | 
			
		||||
import serial
 | 
			
		||||
import six
 | 
			
		||||
import os
 | 
			
		||||
from . import printer, config
 | 
			
		||||
from . import config
 | 
			
		||||
 | 
			
		||||
# Used in demo method
 | 
			
		||||
# Key: The name of escpos function and the argument passed on the CLI. Some
 | 
			
		||||
 
 | 
			
		||||
@@ -48,7 +48,7 @@ class Config(object):
 | 
			
		||||
            else:
 | 
			
		||||
                with open(config_path, 'rb') as f:
 | 
			
		||||
                    config = yaml.safe_load(f)
 | 
			
		||||
        except EnvironmentError as e:
 | 
			
		||||
        except EnvironmentError:
 | 
			
		||||
            raise exceptions.ConfigNotFoundError('Couldn\'t read config at {config_path}'.format(
 | 
			
		||||
                config_path=str(config_path),
 | 
			
		||||
            ))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user