Translation update done using Pootle.
[gammu.git] / installer / addpostflight
blob0f9d8639da2fd62f1e822d78bf83b2da2019860c
1 #!/usr/bin/env python
2 import sys
4 donext = 0
5 tab = sys.argv[1:]
6 for a in tab:
7 if donext:
8 path = a
9 donext = 0
10 if a == "-srcfolder":
11 donext = 1
13 import os
14 for p in os.walk(path):
15 if p[0].endswith("python.pkg"):
16 pythondir = p[0]
17 dest = os.path.join(pythondir, "Contents", "Resources")
18 import shutil
19 shutil.copy(os.path.join(os.path.dirname(__file__),
20 "macpostinstall") ,os.path.join(dest, "postflight"))
21 os.system("hdiutil %s" % " ".join(tab))