Install the .mo files under the wxPython package directory for MSW

since there is no standard place for them like on other platforms.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-03-04 03:33:12 +00:00
parent 98cbc5c60b
commit 77c36d3df9
4 changed files with 80 additions and 7 deletions

View File

@@ -98,6 +98,8 @@ Source: "wxPython\lib\PyCrust\*.txt"; DestDir: "{app}\wxPython\lib\PyCrust
Source: "wxPython\lib\PyCrust\*.ico"; DestDir: "{app}\wxPython\lib\PyCrust"; Components: core
Source: "wxPython\lib\colourchooser\*.py"; DestDir: "{app}\wxPython\lib\colourchooser"; Components: core
%(LOCALE)s
Source: "demo\*.py"; DestDir: "{app}\wxPython\demo"; Components: demo
Source: "demo\*.xml"; DestDir: "{app}\wxPython\demo"; Components: demo
Source: "demo\*.txt"; DestDir: "{app}\wxPython\demo"; Components: demo
@@ -348,6 +350,22 @@ def find_DLLs():
return WXDLL, PYTHONVER
#----------------------------------------------------------------------
def build_locale_string():
template = 'Source: "%s"; DestDir: "{app}\%s"; Components: core'
stringlst = []
def walk_helper(lst, dirname, files):
for f in files:
filename = os.path.join(dirname, f)
if not os.path.isdir(filename):
lst.append( template % (filename, dirname) )
os.path.walk('wxPython\\locale', walk_helper, stringlst)
return '\n'.join(stringlst)
#----------------------------------------------------------------------
def main():
@@ -366,6 +384,7 @@ def main():
SYSDIR = r"C:\WINNT\SYSTEM32"
ISSFILE = "__wxPython.iss"
IFSFILE = "__wxPython.ifs"
LOCALE = build_locale_string()
if PYTHONVER >= "2.2":
IF22 = r"InstallDir := InstallDir + '\Lib\site-packages';"