#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Janice Cheng

import sys
import os


print("__file__:",__file__)

abs_path = os.path.abspath(__file__) # 获取某个py的绝对路径
print("abs_path:",abs_path)

p1 = os.path.dirname(abs_path)
p2 = os.path.dirname(p1)

sys.path.append(p2)

print("p1:",p1)
print("p2:",p2)