FreeBSD support (thanks to Romain Garbage)
This commit is contained in:
parent
fa37ef38e3
commit
c6854cbfa3
2 changed files with 5 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue