Cat
Functions
tools Namespace Reference

Functions

def opj (path)
 

Function Documentation

◆ opj()

def tools.opj (   path)
Convert paths to the platform-specific separator

Definition at line 5 of file tools.py.

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
12 
def opj(path)
Definition: tools.py:5