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

This commit is contained in:
Sebastian Wehling-Benatelli 2014-11-29 11:39:25 +01:00
parent c7f09988e5
commit 04e6a51e99
2 changed files with 11 additions and 4 deletions

View File

@ -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():

View File

@ -1 +1 @@
0.0.0-g4b7b
c7f0-dirty