Skip to content

Commit

Permalink
import ctypes
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrettSJohnson committed May 12, 2024
1 parent b5aad3d commit 061c184
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testing/tests/api/externing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def testCdLsPwd(self):
with testing.mkdtemp() as path:
cmd.cd(path)
if sys.platform == 'win32':
import ctypes
def get_long_path_name(path):
buf = ctypes.create_unicode_buffer(260)
ctypes.windll.kernel32.GetLongPathNameW(path, buf, len(buf))
Expand Down

0 comments on commit 061c184

Please sign in to comment.