Skip to content

Commit

Permalink
use python3 in all #!python lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed Sep 2, 2021
1 parent 795363a commit 0c8a005
Show file tree
Hide file tree
Showing 244 changed files with 270 additions and 270 deletions.
2 changes: 1 addition & 1 deletion configs/apps/gladevcp/colored-label/coloredlabel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# vim: sts=4 sw=4 et
# This is a component of LinuxCNC
# complex.py Copyright 2011 Michael Haberler
Expand Down
2 changes: 1 addition & 1 deletion configs/apps/gladevcp/complex/complex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# vim: sts=4 sw=4 et
# This is a component of LinuxCNC
# complex.py Copyright 2010 Michael Haberler
Expand Down
2 changes: 1 addition & 1 deletion configs/apps/gladevcp/templates/classhandler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# vim: sts=4 sw=4 et
# This is a component of LinuxCNC
# classhandler.py Copyright 2010 Michael Haberler
Expand Down
2 changes: 1 addition & 1 deletion configs/apps/gladevcp/templates/classhandler_persistent.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# vim: sts=4 sw=4 et
# This is a component of LinuxCNC
# classhandler_persistent.py Copyright 2010 Michael Haberler
Expand Down
2 changes: 1 addition & 1 deletion configs/sim/axis/db_demo/db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Demonstrate LinuxCNC interface for a database of tools

Expand Down
2 changes: 1 addition & 1 deletion configs/sim/axis/gladevcp/probe.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# vim: sts=4 sw=4 et
# This is a component of Linuxcnc
# probe.py Copyright 2010 Michael Haberler
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import hal

Expand Down
2 changes: 1 addition & 1 deletion configs/sim/axis/vismach/3axis-tutorial/3axis-tutorial
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/env python3

# Rolf Redford, Nov 2018

Expand Down
2 changes: 1 addition & 1 deletion configs/sim/axis/vismach/rolfmill/rolfmill
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/env python3

#import libraries
from vismach import *
Expand Down
2 changes: 1 addition & 1 deletion configs/sim/gmoccapy/gmoccapy_plasma/plasma.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding:UTF-8 -*-
"""
This file will control some options of the gmoccapy plasma screen
Expand Down
2 changes: 1 addition & 1 deletion configs/sim/gmoccapy/gmoccapy_plasma/signals.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding:UTF-8 -*-
"""
This file will control some options of the gmoccapy plasma screen
Expand Down
2 changes: 1 addition & 1 deletion configs/sim/gmoccapy/plasma_config/plasma.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding:UTF-8 -*-
"""
This file will control some options of the gmoccapy plasma screen
Expand Down
2 changes: 1 addition & 1 deletion configs/sim/gmoccapy/plasma_config/signals.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding:UTF-8 -*-
"""
This file will control some options of the gmoccapy plasma screen
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# vim: sts=4 sw=4 et
# This is a component of EMC
# savestate.py copyright 2013 Andy Pugh
Expand Down
2 changes: 1 addition & 1 deletion docs/src/config/ini-config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ This example program filters a file and adds a W axis to match the Z axis.
It depends on there being a space between each axis word to work.

----
#!/usr/bin/env python
#!/usr/bin/env python3

import sys

Expand Down
2 changes: 1 addition & 1 deletion docs/src/config/ini-config_es.txt
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ Este programa de ejemplo filtra un archivo y agrega un eje W para que coincida c
Depende de que haya un espacio entre cada palabra de eje para trabajar.

----
#!/usr/bin/env python
#!/usr/bin/env python3

import sys

Expand Down
2 changes: 1 addition & 1 deletion docs/src/config/ini_config_fr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ Cet exemple de programme filtre un fichier et ajoute un axe W correspondant à
l'axe Z. Il marchera selon la présence d'un espace entre chaque mot d'axe.

----
#!/usr/bin/env python
#!/usr/bin/env python3

import sys

Expand Down
16 changes: 8 additions & 8 deletions docs/src/config/python-interface.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ linuxcnc is running for typical values):

[source,python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import linuxcnc
Expand Down Expand Up @@ -376,7 +376,7 @@ are integers and the rest are floats.

[source,python]
----
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import linuxcnc
s = linuxcnc.stat()
Expand All @@ -399,7 +399,7 @@ of a particular axis:

[source,python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import linuxcnc
s = linuxcnc.stat()
Expand Down Expand Up @@ -548,7 +548,7 @@ so an appropriate test before sending an MDI command through

[source,python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import linuxcnc
s = linuxcnc.stat()
Expand All @@ -570,7 +570,7 @@ Before sending a command, initialize a command channel like so:

[source,python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import linuxcnc
c = linuxcnc.command()
Expand Down Expand Up @@ -750,7 +750,7 @@ c.tool_offset(toolno, z_offset, x_offset, diameter, frontangle, backangle, orie

[source, python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
import linuxcnc
c = linuxcnc.command()

Expand Down Expand Up @@ -819,7 +819,7 @@ one error channel reader task in a setup.

[source,python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import linuxcnc
e = linuxcnc.error_channel()
Expand All @@ -843,7 +843,7 @@ Here's an example for reading values from an ini file through the

[source,python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# run as:
# python ini-example.py ~/emc2-dev/configs/sim/axis/axis_mm.ini
Expand Down
16 changes: 8 additions & 8 deletions docs/src/config/python-interface_es.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ linuxcnc se está ejecutando para valores típicos):

[source,python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import linuxcnc
Expand Down Expand Up @@ -375,7 +375,7 @@ son enteros y el resto son floats.

[source,python]
----
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import linuxcnc
s = linuxcnc.stat()
Expand All @@ -398,7 +398,7 @@ de un eje particular:

[source,python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import linuxcnc
s = linuxcnc.stat()
Expand Down Expand Up @@ -547,7 +547,7 @@ entonces una prueba apropiada antes de enviar un comando MDI a través de

[source,python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import linuxcnc
s = linuxcnc.stat()
Expand All @@ -569,7 +569,7 @@ Antes de enviar un comando, inicialice un canal de comando así:

[source,python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import linuxcnc
c = linuxcnc.command()
Expand Down Expand Up @@ -739,7 +739,7 @@ c.tool_offset(toolno, z_offset, x_offset, diameter, frontangle, backangle, orie

[source, python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
import linuxcnc
c = linuxcnc.command()

Expand Down Expand Up @@ -807,7 +807,7 @@ una tarea de lector de canal de error en una configuración.

[source,python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import linuxcnc
e = linuxcnc.error_channel()
Expand All @@ -831,7 +831,7 @@ objeto `linuxcnc.ini`:

[source,python]
---------------------------------------------------------------------
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# run as:
# python ini-example.py ~/emc2-dev/configs/sim/axis/axis_mm.ini
Expand Down
6 changes: 3 additions & 3 deletions docs/src/gui/GStat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ of G20/G21.

[source,python]
----
#!/usr/bin/env python
#!/usr/bin/env python3

import hal
from hal_glib import GStat
Expand Down Expand Up @@ -93,7 +93,7 @@ This file assumes there are three GTK labels named: +

[source,python]
----
#!/usr/bin/env python
#!/usr/bin/env python3

from hal_glib import GStat
GSTAT = GStat()
Expand Down Expand Up @@ -134,7 +134,7 @@ This handler file assumes there are three QLabels named: +
'interp_state_label' +
[source,python]
----
#!/usr/bin/env python
#!/usr/bin/env python3

from qtvcp.core import Status
GSTAT = Status()
Expand Down
2 changes: 1 addition & 1 deletion docs/src/gui/filter_programs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Then it reads the program line by line and passes it to standard output. +
As it does along it updates any process listening to standard error output'
[source,python]
----
#!/usr/bin/python
#!/usr/bin/env python3

import sys
import os
Expand Down
2 changes: 1 addition & 1 deletion docs/src/gui/qtvcp_code_snippets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ Run this in a separate terminal from linuxcnc to see the sent messages. +

[source,python]
----
#!/usr/bin/env python
#!/usr/bin/env python3
from time import sleep

import zmq
Expand Down
2 changes: 1 addition & 1 deletion docs/src/gui/qtvcp_code_snippets_es.txt
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ Run this in a separate terminal from linuxcnc to see the sent messages. +

[source,python]
----
#!/usr/bin/env python
#!/usr/bin/env python3
from time import sleep

import zmq
Expand Down
10 changes: 5 additions & 5 deletions docs/src/gui/qtvcp_custom_widgets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Lets look at a snippet of simple_widgets.py. +

[source,python]
----
#!/usr/bin/python3
#!/usr/bin/env python3

###############################
# Imports
Expand Down Expand Up @@ -94,7 +94,7 @@ This LED indicator widget will respond to selectable linuxcnc controller states.

[source,python]
----
#!/usr/bin/python3
#!/usr/bin/env python3

###############################
# Imports
Expand Down Expand Up @@ -476,7 +476,7 @@ to import them. +


----
#!/usr/bin/env python
#!/usr/bin/env python3

from PyQt5 import QtCore, QtGui
from PyQt5.QtDesigner import QPyDesignerCustomWidgetPlugin
Expand Down Expand Up @@ -521,7 +521,7 @@ class LcncGridLayoutPlugin(QPyDesignerCustomWidgetPlugin):

[source,python]
----
#!/usr/bin/env python
#!/usr/bin/env python3

from PyQt5 import QtCore, QtGui
from PyQt5.QtDesigner import QPyDesignerCustomWidgetPlugin
Expand Down Expand Up @@ -569,7 +569,7 @@ in a more convenient way. This is the plugin used for action buttons. +

[source,python]
----
#!/usr/bin/env python
#!/usr/bin/env python3

import sip
from PyQt5 import QtCore, QtGui, QtWidgets
Expand Down
10 changes: 5 additions & 5 deletions docs/src/gui/qtvcp_custom_widgets_es.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Lets look at a snippet of simple_widgets.py. +

[source,python]
----
#!/usr/bin/python3
#!/usr/bin/env python3

###############################
# Imports
Expand Down Expand Up @@ -94,7 +94,7 @@ This LED indicator widget will respond to selectable linuxcnc controller states.

[source,python]
----
#!/usr/bin/python3
#!/usr/bin/env python3

###############################
# Imports
Expand Down Expand Up @@ -396,7 +396,7 @@ to import them. +

[source,python]
----
#!/usr/bin/env python
#!/usr/bin/env python3

from PyQt5 import QtCore, QtGui
from PyQt5.QtDesigner import QPyDesignerCustomWidgetPlugin
Expand Down Expand Up @@ -441,7 +441,7 @@ class LcncGridLayoutPlugin(QPyDesignerCustomWidgetPlugin):

[source,python]
----
#!/usr/bin/env python
#!/usr/bin/env python3

from PyQt5 import QtCore, QtGui
from PyQt5.QtDesigner import QPyDesignerCustomWidgetPlugin
Expand Down Expand Up @@ -489,7 +489,7 @@ in a more convenient way. This is the plugin used for action buttons. +

[source,python]
----
#!/usr/bin/env python
#!/usr/bin/env python3

import sip
from PyQt5 import QtCore, QtGui, QtWidgets
Expand Down
Loading

0 comments on commit 0c8a005

Please sign in to comment.