work with special tigris build that workarounds vs bug on .svn; eg look for _svn too
This commit is contained in:
parent
ba54aa9630
commit
c9cc45a7cc
|
@ -41,10 +41,10 @@ import common.logger
|
|||
logger = common.logger.Logger() # init the logger
|
||||
|
||||
if os.name == 'nt':
|
||||
if '.svn' not in os.listdir('.'): # we are normal users (not svn users)
|
||||
DATA_DIR = 'data'
|
||||
else:
|
||||
if '.svn' in os.listdir('.') or '_svn' in os.listdir('.'):
|
||||
DATA_DIR = os.path.join('..', 'data')
|
||||
else: # we are normal users (not svn users)
|
||||
DATA_DIR = 'data'
|
||||
try:
|
||||
# Documents and Settings\[User Name]\Application Data\Gajim
|
||||
LOGPATH = os.path.join(os.environ['appdata'], 'Gajim', 'Logs') # deprecated
|
||||
|
|
Loading…
Reference in New Issue