4 configs
= ["left_ptr.in", "help.in", "progress.in", "wait.in", "cross.in", "text.in", "pencil.in", "circle.in", "size_ver.in", "size_hor.in", "size_fdiag.in", "size_bdiag.in", "fleur.in", "up_arrow.in", "pointer.in"]
7 print "too few arguments for wincursor"
18 if not configs
.count(conf
[conf
.rfind("/")+1:]):
21 conffile
= conf
[conf
.rfind("/")+1:]
31 if l
and not l
.startswith("#"):
34 imglist
+= [(v
[3], v
[1], v
[2])]
36 imglist
+= [(v
[3], v
[1], v
[2], v
[4])]
39 pngls
= [os
.path
.join(pngdir
, i
[0]) for i
in imglist
]
45 jiffie
= int((float(img
[3]) / 1000) * 60)
47 print os
.popen4("png2ico %s --hotspotx %s --hotspoty %s --framerate %s %s" % (os
.path
.join(outdir
, conffile
.replace(".in", ".ani")), img
[1], img
[2], jiffie
, pngstr
))[1].read()
48 elif len(imglist
) == 1:
50 print os
.popen4("png2ico %s --hotspotx %s --hotspoty %s %s" % (os
.path
.join(outdir
, conffile
.replace(".in", ".cur")), img
[1], img
[2], os
.path
.join(pngdir
, img
[0])))[1].read()