def getWorkDirs():
<EOL>caller_fullurl = inspect.stack()[<NUM_LIT:1>][<NUM_LIT:1>]<EOL>caller_relurl = os.path.relpath(caller_fullurl)<EOL>caller_modurl = os.path.splitext(caller_relurl)[<NUM_LIT:0>]<EOL>dirs = caller_modurl.split('<STR_LIT:/>')<EOL>dirs[<NUM_LIT:0>] = '<STR_LIT:data>' <EOL>outDir = os.path.join(*(['<STR_LIT>'] + dirs[<NUM_LIT:1>:]))<EOL>if not os.path.exists(outDir): os.makedirs(outDir)<EOL>dirs.append('<STR_LIT:input>')<EOL>inDir = os.path.join(*dirs)<EOL>if not os.path.exists(inDir):<EOL><INDENT>logging.critical('<STR_LIT>' % inDir)<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>return inDir, outDir<EOL>
get input/output dirs (same input/output layout as for package)