25 lines
356 B
Python
25 lines
356 B
Python
|
# 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
|
||
|
|
||
|
dir
|
||
|
def sariadir():
|
||
|
global dir
|
||
|
dir = join(expand("~"), ".saria")
|
||
|
if exists(dir) == False:
|
||
|
mkdir(dir)
|
||
|
sariadir = get_sariadir()
|
||
|
return get_sariadir()
|
||
|
|
||
|
|
||
|
def get_sariadir():
|
||
|
global dir
|
||
|
return dir
|
||
|
|