Skip to content

Commit

Permalink
Fix makeplugin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rhcad committed Feb 21, 2012
1 parent 6b5a44e commit e4654c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/uidemo/mfcwnd/testmfcwnd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This example illustrates how MFC UI interfaces can be used from wxPython.
# This example illustrates how MFC UI interfaces can be used from python with wxPython.
# Renames this file as *.pyw to run without shell window.

import uidemo.mfcwnd as test
Expand Down
6 changes: 3 additions & 3 deletions tools/makeplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def xlat(match):
return rx.sub(xlat, text)

def copyfiles(srcdir, dstdir, pairs, baseprj, callback, needswig=False):
if ".svn" in srcdir: return
if ".svn" in srcdir or "eclipse" in srcdir: return
if not needswig and "swig" in srcdir: return
has_ifile = not needswig and os.path.exists(os.path.join(srcdir, baseprj + ".i"))

Expand All @@ -41,9 +41,9 @@ def copyfiles(srcdir, dstdir, pairs, baseprj, callback, needswig=False):

if os.path.isdir(srcfile):
copyfiles(srcfile, dstfile, pairs, baseprj, callback, needswig)
return
continue

if has_ifile and (fn == baseprj + ".i" or fn.startswith("test" + baseprj)): return
if has_ifile and (fn == baseprj + ".i" or fn.startswith("test" + baseprj)): continue

if os.path.isfile(srcfile) and not os.path.exists(dstfile) \
and callback(fn, pairs):
Expand Down

0 comments on commit e4654c5

Please sign in to comment.