1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

Convert ini format to yaml format.

This commit is contained in:
Davis Goglin
2016-03-15 13:47:23 -07:00
committed by Davis Goglin
parent 39e912bef4
commit c26c875b61
4 changed files with 23 additions and 29 deletions

View File

@@ -127,14 +127,14 @@ You can create a configuration file for python-escpos. This will
allow you to use the CLI, and skip some setup when using the library
programically.
The default configuration file is named ``config.ini``. For windows it is
probably at::
The default configuration file is named ``config.yaml``. It's in the YAML
format. For windows it is probably at::
%appdata%/python-escpos/config.ini
%appdata%/python-escpos/config.yaml
And for linux::
$HOME/.config/python-escpos/config.ini
$HOME/.config/python-escpos/config.yaml
If you aren't sure, run::
@@ -157,7 +157,7 @@ To load the configured pritner, run::
The printer section
^^^^^^^^^^^^^^^^^^^
The ``[printer]`` configuration section defines a default printer to create.
The ``printer`` configuration section defines a default printer to create.
The only required paramter is ``type``. The value of this should be one of the
printers defined in :doc:`/user/printers`.
@@ -166,16 +166,16 @@ The rest of the parameters are whatever you want to pass to the printer.
An example file printer::
[printer]
type=File
devfile=/dev/someprinter
printer:
type: File
devfile: /dev/someprinter
And for a network printer::
[printer]
type=network
host=127.0.0.1
port=9000
printer:
type: network
host: 127.0.0.1
port: 9000
How to update your code for USB printers
----------------------------------------