Skip to content

Commit 8366aa1

Browse files
committed
Fixed the List Packages command action to open Installed Packages
if the package was installed packed
1 parent 2066136 commit 8366aa1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package_control/commands/list_packages_command.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def on_done(self, picked):
8181
package_name = self.package_list[picked][0]
8282

8383
def open_dir():
84-
self.window.run_command('open_dir',
85-
{"dir": os.path.join(sublime.packages_path(), package_name)})
84+
package_dir = self.manager.get_package_dir(package_name)
85+
if not os.path.exists(package_dir):
86+
package_dir = self.manager.settings['installed_packages_path']
87+
self.window.run_command('open_dir', {"dir": package_dir})
8688
sublime.set_timeout(open_dir, 10)

0 commit comments

Comments
 (0)