Skip to content

head of packaged python-mode needs python-mode installation dir set #67

@ViktorHaag

Description

@ViktorHaag

Recent versions of packaged (https://github.com/emacsmirror/python-mode) python-mode seem to require a py-install-directory variable set and provide default-directory as a fallback if the var is not set. We should likely add in something like this before the (require 'python-mode) in starter-kit-python.org to properly set this variable to the installed package version:

(setq py-install-directory
  (car (directory-files package-user-dir t "python-mode-.*")) )

This is probably a relatively fragile gist: it pulls the first item out of the (not reliably sorted) list of file/dirs that match the pattern out of the package directory. It might be useful to have a "get directory for loaded package" function or something to properly get the place that a loaded package ends up at here.

I'm using this setq in my starter-kit-python.el, and it seems to work just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions