Systematic-LEDs icon indicating copy to clipboard operation
Systematic-LEDs copied to clipboard

shortcut to run main.py?

Open Andriejus opened this issue 6 years ago • 5 comments

Is there another way to run main.py? Now I need to open Anaconda+terminal. Type in commands to run main,py. Is it possible tu run it in few clicks?:)

Andriejus avatar Jan 29 '19 15:01 Andriejus

It's relatively simple. One possible way is to find the appropriate environment directory. In my case:

C:\Users\STFU\Anaconda3\envs\LED

Open "main.py" with an editor and add this to the first line (with your correct path):

#! C:\Users\STFU\Anaconda3\envs\LED\python.exe

Now you can start the application by double clicking on the main.py or create a shortcut to it.

Tested on Windows 10.

Maerchensarg avatar Feb 04 '19 16:02 Maerchensarg

How to do it on macOS? :)

Andriejus avatar Feb 11 '19 18:02 Andriejus

not working

Firemanpl avatar Aug 22 '19 15:08 Firemanpl

Is there a better method ?

Firemanpl avatar Aug 22 '19 16:08 Firemanpl

it was working in windows, but I could not do it on iMAC. I didnt try very hard to make it run:)

Andriejus avatar Aug 22 '19 20:08 Andriejus