File: relpath

package info (click to toggle)
rdma-core 33.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 13,844 kB
  • sloc: ansic: 145,804; python: 5,688; sh: 2,761; perl: 1,465; makefile: 73
file content (8 lines) | stat: -rw-r--r-- 197 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
#!/usr/bin/env python
# Copyright 2017 Mellanox Technologies, Inc.
# Licensed under BSD (MIT variant) or GPLv2. See COPYING.

import os
import sys

print(os.path.relpath(sys.argv[1], sys.argv[2]))