(fname)
return os.path.splitext(os.path.basename(fname))[0]
Create model name based of filename ("path/fname.js" -> "fname").
Create model name based of filename ("path/fname.js" -> "fname").
Create model name based of filename ( path / fname . js - > fname ) .
def get_name(fname):
    """Create model name based of filename ("path/fname.js" -> "fname").
    """

    return os.path.splitext(os.path.basename(fname))[0]
def get_name ( fname ) : return os . path . splitext ( os . path . basename ( fname ) ) [ 0 ]