From: Stephen Soltesz Date: Tue, 30 Jun 2009 22:48:23 +0000 (+0000) Subject: move readline import to module that is designed to run on a console, and X-Git-Tag: MyPLC-4.3-17~3 X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=commitdiff_plain;h=10bef10c43616fd505e9463289f88411e83cbc42 move readline import to module that is designed to run on a console, and remove it from the one that isn't. --- diff --git a/plc-config-tty b/plc-config-tty index 9e8ec4e..124713b 100755 --- a/plc-config-tty +++ b/plc-config-tty @@ -1,6 +1,7 @@ #!/bin/env python import sys +import readline import plc_config def validator(validated_variables): diff --git a/plc_config.py b/plc_config.py index cedd66c..98f95d1 100644 --- a/plc_config.py +++ b/plc_config.py @@ -13,7 +13,6 @@ import codecs import os import re -import readline import sys import textwrap import time @@ -847,7 +846,7 @@ class TrimTextElement(xml.dom.minidom.Element): #################### # GLOBAL VARIABLES # -release_id = "$Id:$" +release_id = "$Id$" release_rev = "$Revision:$" release_url = "$URL:$"