File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import sys
16
16
import os
17
- import os .path as osp
17
+ # import os.path as osp
18
+ from pathlib import Path
18
19
import re
19
20
20
21
# Local imports
@@ -25,9 +26,12 @@ def test_python_packages(pyver):
25
26
"""Check if all Python packages are supported by WinPython"""
26
27
basedir = utils .get_basedir (pyver )
27
28
for suffix in ('src' , 'win32' , 'win-amd64' ):
28
- dirname = osp .join (basedir , 'packages.%s' % suffix )
29
+ # dirname = osp.join(basedir, 'packages.%s' % suffix)
30
+ dirname = str (Path (basedir ) / f'packages.{ suffix } ' )
29
31
for name in os .listdir (dirname ):
30
- if osp .isfile (osp .join (dirname , name )) \
32
+ # if osp.isfile(osp.join(dirname, name)) \
33
+ # if osp.isfile(str(Path(dirname) / name)) \
34
+ if (Path (dirname ) / name ).is_file () \
31
35
and not re .match (r'python-([0-9\.]*)(\.amd64)?\.msi' , name ):
32
36
try :
33
37
print (wppm .Package (name ))
You can’t perform that action at this time.
0 commit comments