From 04e6a51e99b34a586e9d4c0788eeeca4e55de739 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Sat, 29 Nov 2014 11:39:25 +0100 Subject: [PATCH] edit on makePyLoT.py: a symlink is created an darwin systems in order to get the right application name on Mac OS X's menubar --- makePyLoT.py | 13 ++++++++++--- pylot/RELEASE-VERSION | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/makePyLoT.py b/makePyLoT.py index b1b390dc..1328b6f2 100644 --- a/makePyLoT.py +++ b/makePyLoT.py @@ -1,4 +1,4 @@ -#!/usr/local/bin/python2.7 +#!/usr/bin/env python # encoding: utf-8 ''' makePyLoT -- build and install PyLoT @@ -22,8 +22,9 @@ It defines updated: Updated ''' -import sys +import glob import os +import sys from argparse import ArgumentParser from argparse import RawDescriptionHelpFormatter @@ -119,7 +120,13 @@ def buildPyLoT(): if sys.platform.startswith('win' or 'microsoft'): raise CLIError("building on Windows system not tested yet; implementation pending") elif sys.platform == 'darwin': - pass + # create a symbolic link to the desired python interpreter in order to + # display the right application name + for path in os.getenv('PATH').split(':'): + found = glob.glob(os.path.join(path, 'python')) + if found: + os.symlink(found, 'PyLoT') + break def installPyLoT(): diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index c7992fb6..8c5cb386 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -0.0.0-g4b7b +c7f0-dirty