diff options
author | Paweł Jastrzębski <pawelj@iosphe.re> | 2014-11-24 18:44:03 +0100 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@iosphe.re> | 2014-11-24 18:47:53 +0100 |
commit | c9eb73ab90061a90df6a36b8177968f5343b75fc (patch) | |
tree | e5343319cf01d59c1a08df54bc450ef32dd996ab | |
parent | Updated UnRAR (diff) | |
download | kcc-c9eb73ab90061a90df6a36b8177968f5343b75fc.tar.gz kcc-c9eb73ab90061a90df6a36b8177968f5343b75fc.tar.bz2 kcc-c9eb73ab90061a90df6a36b8177968f5343b75fc.zip |
OS X: Miscellaneous fixes (close #115)
-rwxr-xr-x | kcc.py | 7 | ||||
-rw-r--r-- | kcc/KCC_gui.py | 4 | ||||
-rwxr-xr-x | setup.py | 2 |
3 files changed, 6 insertions, 7 deletions
diff --git a/kcc.py b/kcc.py index c59f2ad..c957cca 100755 --- a/kcc.py +++ b/kcc.py @@ -74,11 +74,8 @@ from multiprocessing import freeze_support from kcc import KCC_gui # OS specific PATH variable workarounds -if sys.platform.startswith('darwin'): - if 'RESOURCEPATH' in os.environ: - os.environ['PATH'] = os.environ['RESOURCEPATH'] + ':' + os.environ['PATH'] - else: - os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/:' + os.environ['PATH'] +if sys.platform.startswith('darwin') and 'RESOURCEPATH' not in os.environ: + os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/:' + os.environ['PATH'] elif sys.platform.startswith('win'): if getattr(sys, 'frozen', False): os.chdir(os.path.dirname(os.path.abspath(sys.executable))) diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index 1f581df..5a0179f 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -1016,7 +1016,9 @@ class KCCGUI(KCC_ui.Ui_KCC): self.listFontSize = 11 self.statusBarFontSize = 10 self.statusBarStyle = 'QLabel{padding-top:2px;padding-bottom:3px;}' - self.ProgressBar.setStyleSheet('QProgressBar{padding-top:5px;text-align:center;}') + self.ProgressBar.setStyleSheet('QProgressBar{font-size:13px;text-align:center;' + 'border:2px solid grey;border-radius:5px;}' + 'QProgressBar::chunk{background-color:steelblue;width:20px;}') elif sys.platform.startswith('linux'): self.listFontSize = 8 self.statusBarFontSize = 8 diff --git a/setup.py b/setup.py index 396d6d7..6fb57e2 100755 --- a/setup.py +++ b/setup.py @@ -47,7 +47,7 @@ if platform == "darwin": ], LSMinimumSystemVersion='10.8.0', LSEnvironment=dict( - PATH='/usr/local/bin:/usr/bin:/bin' + PATH='./../Resources:/usr/local/bin:/usr/bin:/bin' ), NSHumanReadableCopyright='ISC License (ISCL)' ) |