import os class LtspBerryTerminal: def __init__(self): self.skel_config="/usr/share/n4d-lliurexberry-server/berryterminal.skel" self.config_dir="/var/lib/tftpboot/ltsp/" self.config_file=self.config_dir+"berryterminal.ini" #def def startup(self,options=None): if not os.path.exists(self.config_dir): os.makedirs(self.config_dir) if not os.path.exists(self.config_file): shutil.copy(self.skel_config,self.config_file) #def startup