mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Merge pull request #1209 from RobinD42/use-pathlib-touch
Use pathlib2 to implement cmd_touch
This commit is contained in:
6
build.py
6
build.py
@@ -27,6 +27,8 @@ import tarfile
|
||||
import tempfile
|
||||
import datetime
|
||||
|
||||
import pathlib2
|
||||
|
||||
from distutils.dep_util import newer, newer_group
|
||||
from buildtools.config import Config, msg, opj, posixjoin, loadETG, etg2sip, findCmd, \
|
||||
phoenixDir, wxDir, copyIfNewer, copyFile, \
|
||||
@@ -1181,7 +1183,9 @@ def cmd_sip(options, args):
|
||||
def cmd_touch(options, args):
|
||||
cmdTimer = CommandTimer('touch')
|
||||
pwd = pushDir(phoenixDir())
|
||||
runcmd('touch etg/*.py')
|
||||
etg = pathlib2.Path('etg')
|
||||
for item in etg.glob('*.py'):
|
||||
item.touch()
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -11,3 +11,4 @@ pytest-xdist
|
||||
pytest-timeout
|
||||
numpy
|
||||
pillow
|
||||
pathlib2
|
||||
|
||||
Reference in New Issue
Block a user