PyFoam.ThirdParty.winhacks module

Windows. For more information on these modifications, visit:
http://www.bluecape.com.pt/blueCFD

PyFoam is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See the file COPYING in this directory, for a description of the GNU General Public License terms under which you can copy the files.

Script
winhacks.py
Description
This script file acts mostly as a dummy stub for several POSIX functions that are not available on Windows and on Python for Windows. Source code available on this file is a compilation of public domain solutions.

PyFoam.ThirdParty.winhacks.getloadavg()[source]

Dummy result, 1 to avoid division by zero

PyFoam.ThirdParty.winhacks.getlogin()[source]

Get login username from environment.

PyFoam.ThirdParty.winhacks.getpagesize()[source]
PyFoam.ThirdParty.winhacks.getrusage(who)[source]

Creates a symbolic link pointing to source named link_name