Ignore:
Timestamp:
Oct 21, 2011, 4:31:04 PM (13 years ago)
Author:
habili
Message:

using platform for uname since os.uname doesn't exist on windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_profile/profile_structure.py

    r8232 r8233  
    144144import time
    145145import os
     146import platform
    146147
    147148if not os.path.isdir('profile_structure'):
     
    150151t = time.ctime().replace(' ', '_')
    151152t = t.replace(':', '-')
    152 uname_ = os.uname()
     153uname_ = platform.uname()
    153154
    154155os.mkdir(os.path.join('profile_structure', t))
Note: See TracChangeset for help on using the changeset viewer.