Cat
tools.py
Go to the documentation of this file.
1 import wx
2 
3 import os
4 
5 def opj(path):
6  """Convert paths to the platform-specific separator"""
7  st = apply(os.path.join, tuple(path.split('/')))
8  # HACK: on Linux, a leading / gets lost...
9  if path.startswith('/'):
10  st = '/' + st
11  return st
def opj(path)
Definition: tools.py:5