Skip to content

Commit

Permalink
Fix package control not working in development environment (#1686)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminSchaaf authored Jul 12, 2024
1 parent c441c4e commit fa96472
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package_control/sys_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

# Default packages are located in application installation directory next to executables.
__default_packages_path = os.path.join(os.path.dirname(__executable_path), 'Packages')
if not os.path.isdir(__default_packages_path):
# Fall back to detecting the path using the location of the module
import Default.sort as default_module
__default_packages_path = os.path.dirname(os.path.dirname(default_module.__file__))

if not os.path.isdir(__default_packages_path):
raise FileNotFoundError('Default Packages')

Expand Down

0 comments on commit fa96472

Please sign in to comment.