'''Parameters module: DEPRICATE THIS
    stores a bunch of global variables used by the other modules
    It also reads from sys.argv'''
from __future__ import division, print_function
import __common__
(print, print_, print_on, print_off,
 rrr, profile) = __common__.init(__name__, '[params]')
# Python
import sys
import helpers
from os.path import exists, expanduser, join


'''
print(' * __name__ = %s' % __name__)
print(' * sys.argv = %r' % sys.argv)
print(' * sys.checkinterval   = %r' % sys.getcheckinterval())
print(' * sys.defaultencoding = %r' % sys.getdefaultencoding())
print(' * sys.filesystemencoding = %r' % sys.getfilesystemencoding())
print(' * sys.prefix = %r' % sys.prefix)
'''


#=====================================================
# DEV DATABASE GLOBALS
#=====================================================
def find_workdir():
    workdir_list = [
        'D:/data/work',
        '/media/Store/data/work', ]
    for workdir in workdir_list:
        if exists(workdir):