opnsense-ports/sysutils/solaar/files/patch-setup.py
Franco Fichtner c4c1b34be7 */*: sync with upstream
Taken from: FreeBSD
2017-03-29 07:50:20 +02:00

32 lines
850 B
Python

--- setup.py.orig 2017-03-20 23:07:26 UTC
+++ setup.py
@@ -6,10 +6,8 @@ from distutils.core import setup
autostart_path = '/etc/xdg/autostart'
import sys
-backup_path_0 = sys.path[0]
-sys.path[0] = backup_path_0 + '/lib'
-from solaar import NAME, __version__
-sys.path[0] = backup_path_0
+NAME = 'Solaar'
+__version__ = '0.9.2'
if 'install' in sys.argv:
# naively guess where the autostart .desktop file should be installed
@@ -22,7 +20,7 @@ if 'install' in sys.argv:
autostart_path = path.join(xdg_config_home, 'autostart')
del environ, path, xdg_config_home
-del sys, backup_path_0
+del sys
def _data_files():
@@ -36,7 +34,6 @@ def _data_files():
yield _dirname(mo), [mo]
yield 'share/applications', ['share/applications/solaar.desktop']
- yield autostart_path, ['share/applications/solaar.desktop']
del _dirname