FreeBSD support (thanks to Romain Garbage)

This commit is contained in:
Romain Bignon 2011-04-26 08:17:38 +02:00
commit c6854cbfa3
2 changed files with 5 additions and 1 deletions

View file

@ -55,6 +55,9 @@ Erwan Jahier <Erwan.Jahier@imag.fr>
Laurent Dufréchou <laurent.dufrechou@gmail.com>
* Windows support.
Romain Garbage <romain.garbage@gmail.com>
* Fixes for FreeBSD.
Philippe Fremy <phil@freehackers.org>
* Fixes for Windows.

View file

@ -23,6 +23,7 @@ from __future__ import with_statement
import stat
import os
import sys
import re
from ConfigParser import RawConfigParser, DuplicateSectionError
from logging import warning
@ -40,7 +41,7 @@ class BackendsConfig(object):
try:
mode = os.stat(confpath).st_mode
except OSError:
if sys.platform == 'win32':
if re.match('^(win32|freebsd[0-9]*)$', sys.platform):
fptr = open(confpath,'w')
fptr.close()
else: