Mailinglist Archive: opensuse-buildservice (239 mails)

< Previous Next >
[opensuse-buildservice] Re: [opensuse-svn] r7335 - in trunk/buildservice/src/clientlib/python/osc: . osc
  • From: Michal Čihař <michal@xxxxxxxxx>
  • Date: Fri, 15 May 2009 14:07:31 +0200
  • Message-id: <20090515140731.2c026b66@xxxxxxxxxxxxxxxxx>
Hi

Dne Fri, 15 May 2009 05:40:54 -0600 (MDT)
"Novell Forge SVN" <noreply@xxxxxxxxxxxxxxxx> napsal(a):

print 'Getting buildinfo from server'
- bi_file = NamedTemporaryFile(suffix='.xml', prefix='buildinfo.', dir =
'/tmp')
+ tempdir = '/tmp'
+ if sys.platform[:3] == 'win':
+ tempdir = os.getenv('TEMP')

Would not be better to use tempfile.gettempdir() regardless current
platform?

--
Michal Čihař | http://cihar.com | http://blog.cihar.com
< Previous Next >
Follow Ups