{"id":306,"date":"2024-09-17T10:46:26","date_gmt":"2024-09-17T10:46:26","guid":{"rendered":"https:\/\/johnnycarlos.com\/?p=306"},"modified":"2025-10-18T21:36:15","modified_gmt":"2025-10-18T21:36:15","slug":"using-python-to-test-godot-exported-games-for-web-on-windows-11","status":"publish","type":"post","link":"https:\/\/johnnycarlos.com\/index.php\/2024\/09\/17\/using-python-to-test-godot-exported-games-for-web-on-windows-11\/","title":{"rendered":"Using Python to Test Godot Exported Games for Web on Windows 11"},"content":{"rendered":"\n<p>These are my notes for my own future reference&#8230;<\/p>\n\n\n\n<p><strong>Step 1: Download Python<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"503\" src=\"https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/python-download-installer.png\" alt=\"\" class=\"wp-image-308\" style=\"width:626px;height:auto\" srcset=\"https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/python-download-installer.png 921w, https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/python-download-installer-300x164.png 300w, https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/python-download-installer-768x419.png 768w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p><strong>Step 2: Install Python<\/strong><\/p>\n\n\n\n<p>Go to the official Python.org page and download the latest Python version.  I checked both use admin privileges when installing py.exe and Add python.exe to PATH:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"655\" height=\"400\" src=\"https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/windows_python_install.png\" alt=\"\" class=\"wp-image-307\" style=\"width:618px;height:auto\" srcset=\"https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/windows_python_install.png 655w, https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/windows_python_install-300x183.png 300w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/figure>\n\n\n\n<p><strong>Step 3: Open Powershell<\/strong><\/p>\n\n\n\n<p>Use File Explorer to navigate to your exported files directory.  Right-Click and choose Open PowerShell window here:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"963\" height=\"593\" src=\"https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/right-click-powershell.png\" alt=\"\" class=\"wp-image-309\" style=\"width:724px;height:auto\" srcset=\"https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/right-click-powershell.png 963w, https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/right-click-powershell-300x185.png 300w, https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/right-click-powershell-768x473.png 768w\" sizes=\"auto, (max-width: 963px) 100vw, 963px\" \/><\/figure>\n\n\n\n<p><strong>Step 4: Start the Webserver<\/strong><\/p>\n\n\n\n<p>Enter the command:  py -m http.server<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"896\" height=\"155\" src=\"https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/python-web-server-command.png\" alt=\"\" class=\"wp-image-312\" srcset=\"https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/python-web-server-command.png 896w, https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/python-web-server-command-300x52.png 300w, https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/python-web-server-command-768x133.png 768w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/figure>\n\n\n\n<p><strong>Step 5:  Browse to localhost:8000<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"304\" height=\"95\" src=\"https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/python-url-webgame.png\" alt=\"\" class=\"wp-image-310\" srcset=\"https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/python-url-webgame.png 304w, https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/python-url-webgame-300x94.png 300w\" sizes=\"auto, (max-width: 304px) 100vw, 304px\" \/><\/figure>\n\n\n\n<p><strong>Step 6: Game should run&#8230;<\/strong><\/p>\n\n\n\n<p>You may need to browse to the html file.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>These are my notes for my own future reference&#8230; Step 1: Download Python Step 2: Install Python Go to the official Python.org page and download the latest Python version. I checked both use admin privileges when installing py.exe and Add python.exe to PATH: Step 3: Open Powershell Use File Explorer to navigate to your exported [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"cybocfi_hide_featured_image":"","footnotes":""},"categories":[22],"tags":[],"class_list":["post-306","post","type-post","status-publish","format-standard","hentry","category-godot"],"_links":{"self":[{"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/posts\/306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/comments?post=306"}],"version-history":[{"count":2,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/posts\/306\/revisions"}],"predecessor-version":[{"id":314,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/posts\/306\/revisions\/314"}],"wp:attachment":[{"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/media?parent=306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/categories?post=306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/tags?post=306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}