windows: make openhardlinks work

Despite the intention, openhardlinks would always evaluate to False.
This commit is contained in:
Henrik Stuart 2009-05-23 19:57:25 +02:00
parent 2c2304d400
commit fa95cc9642

View File

@ -68,7 +68,7 @@ def _is_win_9x():
return 'command' in os.environ.get('comspec', '') return 'command' in os.environ.get('comspec', '')
def openhardlinks(): def openhardlinks():
return not _is_win_9x and "win32api" in locals() return not _is_win_9x() and "win32api" in globals()
def system_rcpath(): def system_rcpath():
try: try: