remove (no longer required) EnableBashstyleNG function

parent 0cd8ea80
......@@ -24,21 +24,5 @@ if FAILED:
print "The following modules failed to import: %s" % (" ".join(FAILED))
sys.exit(1)
PREFIX = os.getenv('BSNG_UI_PREFIX')
DATADIR = os.getenv('BSNG_DATADIR')
def SwapDictionary(original_dict):
return dict([(v, k) for (k, v) in original_dict.iteritems()])
def EnableBashstyleNG(activate):
rc = open(os.path.expanduser("~/.bashrc"), "r")
rc_new = open(os.path.expanduser("~/.bashrc.new"), "w")
content = rc.readlines()
for line in content:
if line.find("bashstyle-ng/rc/nx-rc") == -1:
rc_new.write(line)
rc.close
if activate == True:
rc_new.write("source %s/bashstyle-ng/rc/nx-rc" % DATADIR)
rc_new.close
shutil.move(os.path.expanduser("~/.bashrc.new"), os.path.expanduser("~/.bashrc"))
......@@ -91,8 +91,6 @@ class WidgetHandler(object):
self.config["%s" % widget_group]["%s" % widget_setting] = widget.get_value_as_int()
elif type == "bool":
self.config["%s" % widget_group]["%s" % widget_setting] = widget.get_active()
if widget_setting == "use_bashstyle":
misc.EnableBashstyleNG(widget.get_active())
elif type == "combo":
self.config["%s" % widget_group]["%s" % widget_setting] = dict[widget.get_active()]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment