Choosing a version of Python

Information and Tutorials on features in Mylar and how to use it
Post Reply
darr3n
Posts: 7
Joined: Thu Sep 25, 2014 3:33 pm

Choosing a version of Python

Post by darr3n »

I'm running Mylar on a Mac running OS 10.10.3. I recently upgraded Python to version 2.7.10 but Mylar indicates that it is running under 2.7.6. How can I point Mylar to 2.7.10? I installed Mylar using the method at the following link:

http://www.htpcguides.com/install-mylar ... mment-3429

I use the Automator method to launch Mylar at startup. My Python 2.7.10 installation is located at /usr/local/bin/python

Any help would be appreciated.
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Choosing a version of Python

Post by evilhero »

Should be pretty straightforward, change the line:

Code: Select all

       <array>
                <string>/usr/bin/python2.7</string>
                <string>/Applications/Mylar/Mylar.py</string>
to

Code: Select all

       <array>
                <string>/usr/local/bin/python</string>
                <string>/Applications/Mylar/Mylar.py</string>
darr3n
Posts: 7
Joined: Thu Sep 25, 2014 3:33 pm

Re: Choosing a version of Python

Post by darr3n »

Thanks, but I use the automator method a little further down the linked page. The Automator version runs automatically should Mylar shutdown. Basically, Automator runs the following shell script to launch Mylar:

python /Applications/Mylar/Mylar.py -d

Currently this script launches Mylar in Python 2.7.6. How do I modify this script to launch Mylar in Python 2.7.10?

Thanks for your help!
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Choosing a version of Python

Post by evilhero »

I don't use the script, nor did I write that article but it would seem all you need to do is replace:

Code: Select all

python /Applications/Mylar.py -d
with:

Code: Select all

/usr/local/bin/python /Applications/Mylar.py - d
darr3n
Posts: 7
Joined: Thu Sep 25, 2014 3:33 pm

Re: Choosing a version of Python

Post by darr3n »

Yep, that did the trick. Thanks!
Post Reply