{"id":4400,"date":"2023-11-24T12:17:48","date_gmt":"2023-11-24T12:17:48","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4400"},"modified":"2023-11-24T12:17:49","modified_gmt":"2023-11-24T12:17:49","slug":"making-a-python-file-executable","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/application-control\/making-a-python-file-executable","title":{"rendered":"Making a python file executable"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">#!\/usr\/bin\/python<\/h4>\n\n\n\n<p>If the script is made executable, the operating system will use that first line to know which interpreter to run to parse the rest of the file. &nbsp;If you always run python&nbsp;scripts from the command line like python myprogram.py then you could remove this line if preferred.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#!\/usr\/bin\/python If the script is made executable, the operating system will use that first line to know which interpreter to run to parse the rest of the file. &nbsp;If you always run python&nbsp;scripts from the command line like python myprogram.py then you could remove this line if preferred.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[345],"tags":[],"class_list":["post-4400","post","type-post","status-publish","format-standard","hentry","category-application-control"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/comments?post=4400"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4400\/revisions"}],"predecessor-version":[{"id":4401,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4400\/revisions\/4401"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}