Changeset 42:498e4732bc1f


Ignore:
Timestamp:
Aug 31, 2009, 4:48:47 PM (11 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@43
Message:

Auto-convert unix / http path separators to platform appropriate ones -- we should now just be able to use slash as the path separator through-out our own code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/data.py

    r2 r42  
    2121    "mode" is passed as the second arg to open().
    2222    '''
     23    # convert unix path separator to platform appropriate one
     24    filename = os.path.join(*filename.split("/"))
    2325    return open(os.path.join(data_dir, filename), mode)
    2426
Note: See TracChangeset for help on using the changeset viewer.