Hello,
I want to execute: print('Hello world.') in a file called hello.py
After creating a virtual-env (via PyCharm) I have these directories:
./foo
./foo/venv
./foo/venv/lib
./foo/venv/lib/python3.6
./foo/venv/lib/python3.6/site-packages
./foo/venv/include
./foo/venv/bin
I wa
Hi,
I am nearly ready for the new season on the Heritage railway I volunteer
on and I am putting the final touches to a revamped 'runaway train'
attraction in the museum. The last act is to get the code to auto-start
on power up, and I thought that I would use 'systemd'.
The code runs on a R
On 03/03/2019 14:46, Dave Hill wrote:
> on power up, and I thought that I would use 'systemd'.
This is really a Linux question not Python so you might like to try the
Mint forums too. They are usually pretty responsive.
> [Service]
> Type=idle
>
> User=pi
> ExecStart=/bin/bash /
Thank you - registering with Linux Mint
On 03/03/2019 16:01, Alan Gauld via Tutor wrote:
On 03/03/2019 14:46, Dave Hill wrote:
on power up, and I thought that I would use 'systemd'.
This is really a Linux question not Python so you might like to try the
Mint forums too. They are usually prett
On 03Mar2019 16:01, Alan Gauld wrote:
On 03/03/2019 14:46, Dave Hill wrote:
python3 /home/pi/Code/TestVideo#6.py CLIP0026.MP4 20 DEBUG
To be honest I'm surprised that works.
I'd expected bash to interpret the # as a comment delimiter!
But I tried it and it seems ok, you live and learn...
> On Mar 3, 2019, at 14:59, Cameron Simpson wrote:
>
> On 03Mar2019 16:01, Alan Gauld wrote:
>> On 03/03/2019 14:46, Dave Hill wrote:
>>>python3 /home/pi/Code/TestVideo#6.py CLIP0026.MP4 20 DEBUG
>>
>> To be honest I'm surprised that works.
>> I'd expected bash to interpret the # as a comm
Hey there everybody hope your doing great.
I was here a few months ago and got pointed in the right direction very kindly
by one of the tutors. Im a little stuck again now and have been researching for
a while and can't come up with a solution to my problem.
The below program is designed to tak
> On Mar 3, 2019, at 08:46, Dave Hill wrote:
>
>
> I would like to take advantage of the 'restart' functionality, but I still
> wish to have a method of exiting
>
> i.e. Restart=always
>
> Is there a way in which I can have automatic restart but also have a way of
> exiting?
>
Maybe “al