Package PyFoam :: Package ThirdParty :: Module winhacks
[hide private]
[frames] | no frames]

Module winhacks

source code


------------------------------------------------------------------------------
 License
    This file is part of blueCAPE's modifications to PyFoam for working on
    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.

------------------------------------------------------------------------------

Functions [hide private]
 
getloadavg()
Dummy result, 1 to avoid division by zero
source code
 
getlogin()
Get login username from environment.
source code
 
getpagesize() source code
 
getrusage(who) source code
 
symlink(source, link_name)
Creates a symbolic link pointing to source named link_name
source code
Variables [hide private]
  RUSAGE_CHILDREN = 1
  __CSL = None
hash(x)
  __package__ = 'PyFoam.ThirdParty'

Imports: os