castles_made_of_sand wrote:
- Code: Select all
def get_package_and_asset(path):
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
>>> ntpath.basename("C:\\fuck\\fucker")
'fucker'
>>> os.path is posixpath
True
It will as soon as I fix it too?
Return to Plugin Announcements
Users browsing this forum: Lemon and 4 guests