Update python.lua

This commit is contained in:
DarthMooMancer
2025-03-14 11:31:44 -04:00
parent f203fd5874
commit 09f21c5055
+1 -1
View File
@@ -140,6 +140,7 @@ setup(
) )
]], project_name)) ]], project_name))
vim.cmd("edit " .. project_root .. "/main.py")
local venv_path = project_root .. "/venv" local venv_path = project_root .. "/venv"
vim.fn.system("python3 -m venv " .. venv_path) vim.fn.system("python3 -m venv " .. venv_path)
vim.g.python3_host_prog = venv_path .. "/bin/python" vim.g.python3_host_prog = venv_path .. "/bin/python"
@@ -147,7 +148,6 @@ setup(
vim.fn.setenv("PATH", venv_path .. "/bin:" .. vim.fn.getenv("PATH")) vim.fn.setenv("PATH", venv_path .. "/bin:" .. vim.fn.getenv("PATH"))
print("Virtual environment activated for " .. project_name) print("Virtual environment activated for " .. project_name)
vim.cmd("edit " .. project_root .. "/main.py")
end) end)
end end