From 93fcbe8c45b13f3550274337381624c225a1ebb5 Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Wed, 30 Nov 2022 13:18:05 +0100 Subject: [PATCH] Fixes venv file --- .emacs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.emacs b/.emacs index 89b08da..4ce21e6 100644 --- a/.emacs +++ b/.emacs @@ -258,8 +258,8 @@ (defun atu/get-dotvenv () "Gets .venv from project root if any" (when-let* ((root-dir (projectile-project-root)) - (venv (concat (file-name-as-directory root-dir) ".venv")) - (venv-exists (file-exists-p venv)) + (venv-file (concat (file-name-as-directory root-dir) ".venv")) + (venv-exists (file-exists-p venv-file)) (venv-name (with-temp-buffer (insert-file-contents venv-file) (nth 0 (split-string (buffer-string)))))) @@ -349,6 +349,7 @@ (add-hook 'before-save-hook 'py-isort-before-save))) ) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; C/C++ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;