python バックスラッシュからスラッシュ 置換 すぐ忘れるのでメモ

# coding: UTF-8
import unreal
import os
import re
Path=myDir+"../scenes/OneTimeLine/Unity_fbx/motion_000_000_all_unkeyReduction_fbx.fbx"
Path=os.path.abspath(Path)
Path=re.sub(r'\\', '/', Path)
unreal.log_warning("Path = "+Path)

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です