def __del__(self):
if os.path.isfile(os.path.join(self.rootdir, 'GAMIT.status')):
os.remove(os.path.join(self.rootdir, 'GAMIT.status'))
if os.path.isfile(os.path.join(self.rootdir, 'GAMIT.fatal')):
os.remove(os.path.join(self.rootdir, 'GAMIT.fatal'))
if os.path.isfile(os.path.join(self.rootdir, 'grdtab.out')):
os.remove(os.path.join(self.rootdir, 'grdtab.out'))
if os.path.isfile(os.path.join(self.rootdir, 'harpos.' + self.StationCode)):
os.remove(os.path.join(self.rootdir, 'harpos.' + self.StationCode))
if os.path.isfile(os.path.join(self.rootdir, 'otl.grid')):
os.remove(os.path.join(self.rootdir, 'otl.grid'))
if os.path.isfile(os.path.join(self.rootdir, 'ufile.' + self.StationCode)):
os.remove(os.path.join(self.rootdir, 'ufile.' + self.StationCode))
if os.path.isdir(self.rootdir):
os.rmdir(self.rootdir)
评论列表
文章目录