1 |
On a tangential side-note, I am having trouble opening the .glade files. |
2 |
|
3 |
I get the following error message: |
4 |
(glade:4447): GladeUI-WARNING **: 12:47:37.346: Couldnt recognize |
5 |
GtkBuilder xml, skipping |
6 |
/home/ethan/Development/porthole/porthole-0.6.1/porthole/glade/porthole.glade |
7 |
|
8 |
I looked into that specific error and online posts seem to imply a custom |
9 |
version of Glade being used? I'm not too sure. |
10 |
|
11 |
On Mon, Apr 8, 2019 at 8:37 PM Brian Dolbec <dolsen@g.o> wrote: |
12 |
|
13 |
> On Tue, 09 Apr 2019 07:36:45 +0800 |
14 |
> Benda Xu <heroxbd@g.o> wrote: |
15 |
> |
16 |
> > Hi Ethan, |
17 |
> > |
18 |
> > Ethan Kiang <chocopuff298@×××××.com> writes: |
19 |
> > |
20 |
> > > diff --git a/porthole/backends/portlandlib.py |
21 |
> > > b/porthole/backends/portlandlib.py new file mode 100644 |
22 |
> > > index 0000000..c165adb |
23 |
> > > --- /dev/null |
24 |
> > > +++ b/porthole/backends/portlandlib.py |
25 |
> > > @@ -0,0 +1,47 @@ |
26 |
> > > +import re |
27 |
> > > +import datetime |
28 |
> > > +from os import listdir |
29 |
> > > +import subprocess |
30 |
> > > + |
31 |
> > > +EPREFIX = subprocess.check_output(["portageq", "envvar", |
32 |
> > > "EPREFIX"]).decode().strip() |
33 |
> > |
34 |
> > Is it possible that the portage API is used here? |
35 |
> > |
36 |
> > Benda |
37 |
> > |
38 |
> > |
39 |
> |
40 |
> Yes. There is a portage api for this. But the only code really needed |
41 |
> from this file is get_compile_time() modified to use code already |
42 |
> existing in porthole's portagelib.py |
43 |
> |
44 |
> brian@professor-x ~ $ python |
45 |
> python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.4 |
46 |
> Python 3.5.7 (default, Mar 25 2019, 08:41:16) |
47 |
> [GCC 8.2.0] on linux |
48 |
> Type "help", "copyright", "credits" or "license" for more information. |
49 |
> >>> import portage |
50 |
> >>> portage.const.EPREFIX |
51 |
> '' |
52 |
> >>> portage.const.EPREFIX or '/' |
53 |
> '/' |
54 |
> |
55 |
> |
56 |
> So, depending on what you need use either of the above |
57 |
> |
58 |
> |