updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / mcedit / directories.py
blobb9bd2c534fc7d6335ccf9b7b2564b369058b9e69
1 import os.path
3 def findDirectories():
4 DIRS_TO_CREATE = ['.', 'stock-schematics']
5 # There is only one true platform
6 dataDir = os.path.expanduser("~/.mcedit")
7 for d in DIRS_TO_CREATE:
8 p = os.path.join(dataDir, d)
9 if not os.path.exists(p):
10 print "Creating %s..." % p
11 os.makedirs(p)
12 # What does this?
13 runningInEditor = False
14 return (dataDir, runningInEditor)
16 dataDir, runningInEditor = findDirectories()