randy3k / AutomaticPackageReloader

Automatically reload submodules while developing a Sublime Text package.
MIT License
38 stars 13 forks source link

Shouldn't resolve symlinks #13

Closed FichteFoll closed 6 years ago

FichteFoll commented 6 years ago

When I have a symlinked package in my ST dir and want to reload it, AutomaticPackageReloader isn't active for it because of an os.path.realpath call that resolves the symlink and then causes the check for whether the file is within the packages folder to fail.

randy3k commented 6 years ago

That's tricky. I put the whole Packages folder as symlink, so resolving it is necessary. A possible solution is to check both the original path and the real path.

FichteFoll commented 6 years ago

Hm yes, I guess checking both should cover most situations. I remember doing something similar in some other package of mine.