# Bcc: control tags 484311 + patch thanks On 08/06/04 16:51 +0530, Y Giridhar Appaji Nag said ... > Chris, can you confirm that this is case? We can remove os.curdir or add it > as the last entry in sys.path. > > As an aside, I noticed that /usr/share/reportbug is added to sys.path once > again in __main__ in reportbug_submit.py. > > And in querybts too:
Attached patch. This can be modified -- the parts in the patch that change sys.path.append should be removed -- for a minimally modified reportbug for the security upload queues. Giridhar -- Y Giridhar Appaji Nag | http://appaji.net/
Index: querybts
===================================================================
--- querybts (revision 517)
+++ querybts (working copy)
@@ -25,7 +25,7 @@
# $Id: querybts,v 1.7.2.3 2008-04-18 05:38:27 lawrencc Exp $
import sys, os
-sys.path = [os.curdir, '/usr/share/reportbug'] + sys.path
+sys.path = ['/usr/share/reportbug'] + sys.path + [os.curdir]
from reportbug_exceptions import *
Index: reportbug_submit.py
===================================================================
--- reportbug_submit.py (revision 517)
+++ reportbug_submit.py (working copy)
@@ -30,7 +30,7 @@
from reportbug import VERSION, VERSION_NUMBER
import os
-sys.path = [os.curdir, '/usr/share/reportbug'] + sys.path
+sys.path = ['/usr/share/reportbug'] + sys.path + [os.curdir]
import re
import commands
@@ -484,7 +484,6 @@
'o'
if __name__ == '__main__':
- sys.path.append('/usr/share/reportbug')
try:
main()
except KeyboardInterrupt:
Index: reportbug
===================================================================
--- reportbug (revision 522)
+++ reportbug (working copy)
@@ -1798,7 +1798,6 @@
return
if __name__ == '__main__':
- sys.path.append('/usr/share/reportbug')
try:
main()
except KeyboardInterrupt:
signature.asc
Description: Digital signature

