From 9098d10766df65edcd3bed23d2ae28a8d2769801 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 18 Nov 2014 13:50:47 -0800 Subject: [PATCH] use .py extension on all Python files --- artiq/devices/pdq2/{pdq2-client => pdq2-client.py} | 0 .../pdq2/{pdq2-controller => pdq2-controller.py} | 0 doc/manual/writing_a_driver.rst | 14 +++++++------- frontend/{artiq => artiq.py} | 0 frontend/{artiqd => artiqd.py} | 0 ...{identify-controller => identify-controller.py} | 0 frontend/{runelf => runelf.py} | 0 7 files changed, 7 insertions(+), 7 deletions(-) rename artiq/devices/pdq2/{pdq2-client => pdq2-client.py} (100%) rename artiq/devices/pdq2/{pdq2-controller => pdq2-controller.py} (100%) rename frontend/{artiq => artiq.py} (100%) rename frontend/{artiqd => artiqd.py} (100%) rename frontend/{identify-controller => identify-controller.py} (100%) rename frontend/{runelf => runelf.py} (100%) diff --git a/artiq/devices/pdq2/pdq2-client b/artiq/devices/pdq2/pdq2-client.py similarity index 100% rename from artiq/devices/pdq2/pdq2-client rename to artiq/devices/pdq2/pdq2-client.py diff --git a/artiq/devices/pdq2/pdq2-controller b/artiq/devices/pdq2/pdq2-controller.py similarity index 100% rename from artiq/devices/pdq2/pdq2-controller rename to artiq/devices/pdq2/pdq2-controller.py diff --git a/doc/manual/writing_a_driver.rst b/doc/manual/writing_a_driver.rst index 86c2140e1..eae802bbc 100644 --- a/doc/manual/writing_a_driver.rst +++ b/doc/manual/writing_a_driver.rst @@ -32,13 +32,13 @@ The parameters ``::1`` and 7777 are respectively the address to bind the server #!/usr/bin/env python3 -at the beginning of the file, save it to ``hello-controller`` and set its execution permissions: :: +at the beginning of the file, save it to ``hello-controller.py`` and set its execution permissions: :: - $ chmod 755 hello-controller + $ chmod 755 hello-controller.py Run it as: :: - $ ./hello-controller + $ ./hello-controller.py and verify that you can connect to the TCP port: :: @@ -49,9 +49,9 @@ and verify that you can connect to the TCP port: :: :tip: Use the key combination Ctrl-AltGr-9 to get the ``telnet>`` prompt, and enter ``close`` to quit Telnet. Quit the controller with Ctrl-C. -Also verify that you can get the type of the server (the "hello" string passed to ``simple_server_loop``) using the ``identify-controller`` program from the ARTIQ front-end tools: :: +Also verify that you can get the type of the server (the "hello" string passed to ``simple_server_loop``) using the ``identify-controller.py`` program from the ARTIQ front-end tools: :: - $ identify-controller ::1 7777 + $ identify-controller.py ::1 7777 Type: hello The client @@ -59,7 +59,7 @@ The client Controller clients are small command-line utilities that expose certain functionalities of the drivers. They are optional, and not used very often - typically for debugging and testing. -Create a ``hello-client`` file with the following contents: :: +Create a ``hello-client.py`` file with the following contents: :: #!/usr/bin/env python3 @@ -78,7 +78,7 @@ Create a ``hello-client`` file with the following contents: :: Run it as before, while the controller is running. You should see the message appearing on the controller's terminal: :: - $ ./hello-controller + $ ./hello-controller.py message: Hello World! When using the driver in an experiment, for simple cases the ``Client`` instance can be returned by the :class:`artiq.language.core.AutoContext` mechanism and used normally as a device. diff --git a/frontend/artiq b/frontend/artiq.py similarity index 100% rename from frontend/artiq rename to frontend/artiq.py diff --git a/frontend/artiqd b/frontend/artiqd.py similarity index 100% rename from frontend/artiqd rename to frontend/artiqd.py diff --git a/frontend/identify-controller b/frontend/identify-controller.py similarity index 100% rename from frontend/identify-controller rename to frontend/identify-controller.py diff --git a/frontend/runelf b/frontend/runelf.py similarity index 100% rename from frontend/runelf rename to frontend/runelf.py