Skip to content

ディレクトリ区切り文字 #66

@SinisterSoftware

Description

@SinisterSoftware

ディレクトリの区切り文字をスラッシュ(/)にすると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で標準化すべきですね

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions