utils.py 235 B

12345678910111213141516
  1. import os
  2. def get_abs_path(rel_path):
  3. """
  4. Get absolute path
  5. Args:
  6. rel_path: relative path to this file
  7. Returns absolute path
  8. """
  9. return os.path.dirname(os.path.abspath(__file__)) + '/' + rel_path