Skip to content

Commit

Permalink
Fix win32 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed May 15, 2024
1 parent 6d2917e commit de71c1f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ubelt/_win32_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ def _win32_symlink(path, link, verbose=0):
if command is not None:
info = util_cmd.cmd(command, shell=True)
if info['ret'] != 0:
from ubelt import util_format
from ubelt import util_repr
permission_msg = 'You do not have sufficient privledge'
if permission_msg not in info['err']:
print('Failed command:')
print(info['command'])
print(util_format.urepr(info, nl=1))
print(util_repr.urepr(info, nl=1))
raise OSError(str(info))
return link

Expand Down Expand Up @@ -321,10 +321,10 @@ def _win32_junction(path, link, verbose=0):
if command is not None:
info = util_cmd.cmd(command, shell=True)
if info['ret'] != 0:
from ubelt import util_format
from ubelt import util_repr
print('Failed command:')
print(info['command'])
print(util_format.urepr(info, nl=1))
print(util_repr.urepr(info, nl=1))
raise OSError(str(info))
return link

Expand Down Expand Up @@ -539,10 +539,10 @@ def _win32_dir(path, star=''):
wrapped = wrapper.format(command)
info = util_cmd.cmd(wrapped, shell=True)
if info['ret'] != 0:
from ubelt import util_format
from ubelt import util_repr
print('Failed command:')
print(info['command'])
print(util_format.urepr(info, nl=1))
print(util_repr.urepr(info, nl=1))
raise OSError(str(info))
# parse the output of dir to get some info
# Remove header and footer
Expand Down

0 comments on commit de71c1f

Please sign in to comment.