import os
def setnamepath(pathname):
base_path = os.path.dirname(os.path.abspath(__file__))
//target_path = os.path.join(base_path, "movie/") # 設定影片儲存的目錄
target_path = os.path.join(base_path, pathname) # 設定影片儲存的目錄
if not os.path.exists(target_path):
os.mkdir(target_path)