from com.company.testForInspect.c import just_print
if __name__ == "__main__":
just_print("hey it's a")
from com.company.testForInspect.c import just_print
if __name__ == "__main__":
just_print("hey it's b")
import inspect, os
def just_print(s):
print(s)
# print(inspect.getfile(inspect.currentframe())) # script filename (usually with path)
# print(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))) # script directory
print(os.path.abspath(inspect.getframeinfo(inspect.stack()[-1][0])[0])) # /Users/pengyuyan/Documents/code/test/src/com/company/testForInspect/a.py
if __name__ == "__main__":
just_print("hey its c")