Commits

Michał Górny  committed a0adfc4

Obtain configuration root from porttree.settings.

This should make flaggie seemlessly work with Prefix portage:

Fixes: https://bugs.gentoo.org/show_bug.cgi?id=420579

  • Participants
  • Parent commits e6388cb

Comments (0)

Files changed (1)

File lib/flaggie/cli.py

 		main([argv[0], '--help'])
 		return 0
 
-	confroot = os.environ.get('PORTAGE_CONFIGROOT', '/')
+	confroot = porttree.settings['PORTAGE_CONFIGROOT']
 	usercpath = os.path.join(confroot, 'etc', 'portage')
 	mkconf = MakeConf(
 		(os.path.join(confroot, 'etc', 'make.conf'),