File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1919import shutil
2020import sys
2121
22- from guidata import disthelpers
22+ from guidata . disthelpers import get_msvc_dlls
2323
2424# Local imports
2525from winpython import wppm , utils
@@ -374,9 +374,8 @@ def _extract_python(self):
374374 def _add_msvc_files (self ):
375375 """Adding Microsoft Visual C++ DLLs"""
376376 print ("Adding Microsoft Visual C++ DLLs" "" )
377- for fname in disthelpers .get_msvc_dlls (
378- architecture = self .distribution .architecture ,
379- python_version = self .distribution .version ):
377+ for fname in get_msvc_dlls (architecture = self .distribution .architecture ,
378+ python_version = self .distribution .version ):
380379 shutil .copy (fname , self .python_dir )
381380
382381 def _install_required_packages (self ):
Original file line number Diff line number Diff line change 2323import atexit
2424import sys
2525import stat
26-
27- from guidata .utils import decode_fs_string
26+ import locale
2827
2928
3029# Development only
@@ -137,6 +136,13 @@ def is_python_distribution(path):
137136 and osp .isdir (osp .join (path , 'Lib' , 'site-packages' ))
138137
139138
139+ def decode_fs_string (string ):
140+ """Convert string from file system charset to unicode"""
141+ charset = sys .getfilesystemencoding ()
142+ if charset is None :
143+ charset = locale .getpreferredencoding ()
144+ return string .decode (charset )
145+
140146def exec_shell_cmd (args , path ):
141147 """Execute shell command (*args* is a list of arguments) in *path*"""
142148 #print " ".join(args)
You can’t perform that action at this time.
0 commit comments