mikemalinowski/qute

Minor: Potentially unintentionally adding filepaths to QUTE_STYLE_LOCATIONS.

ldunham1 opened this issue · 1 comments

if os.path.exists(location)

os.path.isdir() will check if the path exists AND if its a directory.
Depending on usage, it might be "safer" to use than os.path.exists().

Nice find - i had not even considered that. Switched to os.path.isdir as per your suggestion.