-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
ディレクトリの区切り文字をスラッシュ(/)にするとgetFullpath()関数の戻り値で最後の区切り文字だけ¥(\)マークになる
D:/hoge/test\abc.txt
class item_Defaul(item_CommonPaint):
def getFullpath(self):
return os.path.join( self.location, self.name )
おそらくself.locationは設定が反映されてスラッシュ区切りになっているが、os.path.joinでフルパスにしているので、つなぎ部分が¥マークのままになる
ckit.joinPathでつなぐかckit.normPathで標準化すべきですね
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels