2010-08-07 12:55:23 -04:00
|
|
|
# Bryan Schumaker (8/7/2010)
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
exists = os.path.exists
|
|
|
|
expand = os.path.expanduser
|
|
|
|
join = os.path.join
|
|
|
|
mkdir = os.mkdir
|
|
|
|
rm = os.remove
|
|
|
|
|
2010-08-07 19:39:46 -04:00
|
|
|
dir = None
|
2010-08-07 12:55:23 -04:00
|
|
|
def sariadir():
|
|
|
|
global dir
|
2010-08-07 19:39:46 -04:00
|
|
|
if dir == None:
|
|
|
|
dir = join(expand("~"), ".saria")
|
|
|
|
if exists(dir) == False:
|
|
|
|
mkdir(dir)
|
2010-08-07 12:55:23 -04:00
|
|
|
return dir
|
|
|
|
|