Clean up per landscape
This commit is contained in:
parent
9b40c0860f
commit
7a58109928
|
@ -3,11 +3,8 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import sys
|
|
||||||
import serial
|
|
||||||
import six
|
import six
|
||||||
import os
|
from . import config
|
||||||
from . import printer, config
|
|
||||||
|
|
||||||
# Used in demo method
|
# Used in demo method
|
||||||
# Key: The name of escpos function and the argument passed on the CLI. Some
|
# Key: The name of escpos function and the argument passed on the CLI. Some
|
||||||
|
|
|
@ -48,7 +48,7 @@ class Config(object):
|
||||||
else:
|
else:
|
||||||
with open(config_path, 'rb') as f:
|
with open(config_path, 'rb') as f:
|
||||||
config = yaml.safe_load(f)
|
config = yaml.safe_load(f)
|
||||||
except EnvironmentError as e:
|
except EnvironmentError:
|
||||||
raise exceptions.ConfigNotFoundError('Couldn\'t read config at {config_path}'.format(
|
raise exceptions.ConfigNotFoundError('Couldn\'t read config at {config_path}'.format(
|
||||||
config_path=str(config_path),
|
config_path=str(config_path),
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in New Issue