AdamLaurie / RFIDIOt

python RFID / NFC library & tools
http://www.rfidiot.org/
1.05k stars 222 forks source link

Read only first line from config. Do not parse comments as arguments #17

Closed zhovner closed 9 years ago

zhovner commented 9 years ago

Parsing whole config causes comments parsed as cli arguments:

./rfidiot-cli.py select
*** Warning - no pyscard installed or pcscd not running
rfidiot-cli v0.1 (using RFIDIOt v1.0i)
  Reader: LibNFC pn532_uart:/dev/tty.SLAB_USBtoUART

Unrecognised command: # LINE2_COMMENT_FROM_RFIDIOtconfig.opts