2 # -*- coding: utf-8 -*-
4 lancement du lecteur de fichier de log minwii
9 from os
.path
import realpath
, sep
14 from optparse
import OptionParser
16 from logfilereader
import LogFilePlayer
18 usage
= "%prog logfile"
19 op
= OptionParser(usage
)
20 options
, args
= op
.parse_args()
22 op
.error("incorrect number of arguments")
26 lfp
= LogFilePlayer(args
[0])
30 if __name__
== "__main__" :
31 minwiipath
= realpath(__file__
).split(sep
)
32 minwiipath
= minwiipath
[:-2]
33 minwiipath
= sep
.join(minwiipath
)
34 sys
.path
.insert(1, minwiipath
)