파일 파이썬의 디렉토리 가져 오기
import os
dir_path = os.path.dirname(os.path.realpath(__file__))
파이썬 디렉토리에서 파일 열기
path = 'C:\\Users\\Username\\Path\\To\\File'
file=open(path, "r")
파이썬 파일 디렉토리
from os import path
dir_path = path.dirname(__file__)
어떤 폴더 파이썬 os
import os
cwd = os.getcwd()
내 모든 파일이 파이썬에서 함께 작동하도록하는 방법
>>> import os
>>> entries = os.listdir('my_directory/')