blob: ca4d1b0f77228a35a3647fa360301f3e6357e408 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
tweaks the executable that comes with persepolis to work better with
gentoo's python-exec.
by default meson will detect the python executable used to run it, then
replace @PYTHON@ with that path to be used at runtime. this doesn't work
with portage's path abstraction. instead this replaces with a generic path
then relies on 'python_newscript', run in the ebuild, to resolve the
correct path.
also remove's the hard-coded 'pythonsitepackagedir', python-exec will set
the system path correctly at runtime.
diff --git a/persepolis/persepolis.py b/persepolis/persepolis.py
index d5e5b25..67bc72b 100644
--- a/persepolis/persepolis.py
+++ b/persepolis/persepolis.py
@@ -1,4 +1,4 @@
-#!@PYTHON@
+#!/usr/bin/python
# -*- coding: utf-8 -*-
@@ -19,9 +19,6 @@
# this file is created for running persepolis from /usr/bin/ or /usr/local/bin/.
import sys
-pythonsitepackagedir = '@pythonsitepackagedir@'
-
if __name__ == '__main__':
- sys.path.append(pythonsitepackagedir)
from persepolis.scripts import persepolis
persepolis.main()
|