Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How can I prevent Firefox from opening gedit for a python3 cgi script

  • 1 reply
  • 1 has this problem
  • 13 views
  • Last reply by cor-el

more options

The script begins with either one of the following:

  1. ! /usr/local/bin/python3

or

  1. ! /usr/local/lib/python3
The script begins with either one of the following: #! /usr/local/bin/python3 or #! /usr/local/lib/python3

Chosen solution

Firefox can't process python files, so will always open the file in an external application. You would have to set up a local server and access the page that way if you want to process such a script before passing the result to Firefox.

Read this answer in context 👍 0

All Replies (1)

more options

Chosen Solution

Firefox can't process python files, so will always open the file in an external application. You would have to set up a local server and access the page that way if you want to process such a script before passing the result to Firefox.