#! /usr/bin/python # To change this template, choose Tools | Templates # and open the template in the editor. __author__="bjschuma" __date__ ="$Jan 23, 2010 2:33:21 PM$" from bt.file import * from bt import signal class Alias(dict): def __init__(self): dict.__init__(self) def has(self,key): return ( key in self.keys() ) def save(self,path): file = fopen( join(path,"aliases"), 'w' ) sp = " " for key in self.keys(): file.write("alias "+key+"="+self[key]+"\n") def load(self,path): path = join(path,"aliases") write("Alias file: "+path,1) signal.attachScript("scion-plugins-loaded", path )