##// END OF EJS Templates
more windows fixes.
Vadim Gelfer -
r2026:24c60462 default
parent child Browse files
Show More
@@ -536,7 +536,7 b" if os.name == 'nt':"
536 return pf
536 return pf
537
537
538 try: # Mark Hammond's win32all package allows better functionality on Windows
538 try: # Mark Hammond's win32all package allows better functionality on Windows
539 import win32api, win32con, win32file, winerror, pywintypes
539 import win32api, win32con, win32file, pywintypes
540
540
541 # create hard links using win32file module
541 # create hard links using win32file module
542 def os_link(src, dst): # NB will only succeed on NTFS
542 def os_link(src, dst): # NB will only succeed on NTFS
@@ -558,6 +558,7 b" if os.name == 'nt':"
558 '''return True if pid is still running or unable to
558 '''return True if pid is still running or unable to
559 determine, False otherwise'''
559 determine, False otherwise'''
560 try:
560 try:
561 import win32process, winerror
561 handle = win32api.OpenProcess(
562 handle = win32api.OpenProcess(
562 win32con.PROCESS_QUERY_INFORMATION, False, pid)
563 win32con.PROCESS_QUERY_INFORMATION, False, pid)
563 if handle:
564 if handle:
General Comments 0
You need to be logged in to leave comments. Login now