1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
'''
====================================================================
Copyright (c) 2003-2006 Barry A Scott. All rights reserved.
This software is licensed as described in the file LICENSE.txt,
which you should have received as part of this distribution.
====================================================================
wb_platform_specific.py
'''
import sys
if sys.platform == 'win32':
from wb_platform_win32_specific import *
elif sys.platform == 'darwin':
from wb_platform_macosx_specific import *
else:
from wb_platform_unix_specific import *
def getPreferencesFilename():
return os.path.join( getApplicationDir(), 'WorkBench.ini' )
def getLogFilename():
return os.path.join( getApplicationDir(), 'WorkBench.log' )
def getLastCheckinMessageFilename():
return os.path.join( getApplicationDir(), 'log_message.txt' )
def getLastLockMessageFilename():
return os.path.join( getApplicationDir(), 'lock_message.txt' )
def setupPlatform():
app_dir = getApplicationDir()
if not os.path.exists( app_dir ):
os.makedirs( app_dir )
|