파이썬으로 코딩중인데
def explorer():
subprocess.call('explorer')
으로 탐색기를 실행하고 file의 경로가 뭘 선택하냐에 따라서 달라져서 절대값으로 경로설정은 힘들고
path=os.path.dirname(file)
으로 파일 경로 구해서
탐색기 맨처음 시작하는 위치를 path로 지정하고 싶습니다.
이럴땐 어떻게 해야하나요?
파이썬으로 코딩중인데
def explorer():
subprocess.call('explorer')
으로 탐색기를 실행하고 file의 경로가 뭘 선택하냐에 따라서 달라져서 절대값으로 경로설정은 힘들고
path=os.path.dirname(file)
으로 파일 경로 구해서
탐색기 맨처음 시작하는 위치를 path로 지정하고 싶습니다.
이럴땐 어떻게 해야하나요?