- Code: Select all
package = os.path.basename(os.path.dirname(path))
package = package.replace(".sublime-package", "")
asset = os.path.basename(path)
return (package, asset)
I want my money back! Oh wait, I didn't pay any nor do I really care about windows absolute paths!
skuroda wrote:Looks at my poor poor windows machine that I am forced to use for development
>>> import posixpath
>>> import ntpath
>>> os.path is posixpath
It will as soon as I fix it too?
Users browsing this forum: No registered users and 2 guests