Update python.lua

This commit is contained in:
DarthMooMancer
2025-03-14 09:32:12 -04:00
parent 9408b7d5e1
commit 2b5dfab9d2
+2 -6
View File
@@ -157,14 +157,10 @@ end
function M.run()
local root = M.get_project_root()
if not root then
return print("Error: Project root not found.")
end
if not root then return print("Error: Project root not found.") end
local main_file = root .. "/main.py"
if vim.fn.filereadable(main_file) == 0 then
return print("Error: main.py not found in project root.")
end
if vim.fn.filereadable(main_file) == 0 then return print("Error: main.py not found in project root.") end
-- Check if virtual environment exists
local venv_path = root .. "/venv/bin/activate"