Changeset 1087


Ignore:
Timestamp:
Mar 16, 2005, 2:10:38 PM (20 years ago)
Author:
ole
Message:

Fixed potential bug with os.uname() being called on win32 platforms.

Location:
inundation/ga/storm_surge/pyvolution
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/compile.py

    r756 r1087  
    198198    if os.name == 'posix' and os.uname()[4] == 'x86_64':
    199199      #Extra flags for 64 bit architectures
     200      #Second clause will always fail on Win32 because uname is UNIX specific
     201      #but won't get past first clause
    200202
    201203      #FIXME: Which one?
  • inundation/ga/storm_surge/pyvolution/domain.py

    r1043 r1087  
    626626    except:
    627627        import os
    628         if os.uname()[4] == 'x86_64':
     628        if os.name == 'posix' and os.uname()[4] == 'x86_64':       
    629629            pass
    630630            #Psyco isn't supported on 64 bit systems, but it doesn't matter
  • inundation/ga/storm_surge/pyvolution/shallow_water.py

    r1045 r1087  
    16241624    except:
    16251625        import os
    1626         if os.uname()[4] == 'x86_64':
     1626        if os.name == 'posix' and os.uname()[4] == 'x86_64':
    16271627            pass
    16281628            #Psyco isn't supported on 64 bit systems, but it doesn't matter
  • inundation/ga/storm_surge/pyvolution/test_all.py

    r1018 r1087  
    7575if __name__ == '__main__':
    7676
    77     os.system('python compile.py') #Attempt to compile all extensions
     77    execfile('compile.py')
     78    #os.system('python compile.py') #Attempt to compile all extensions
    7879
    7980    #print regressionTest()
Note: See TracChangeset for help on using the changeset viewer.