safely_mkdir.py

Go to the documentation of this file.
00001 def safely_mkdir(fpath='.',dirname='logs'):
00002     import os
00003     
00004     _log_path = os.path.abspath(os.sep.join([fpath,dirname]))
00005     if (not os.path.exists(_log_path)):
00006         os.mkdir(_log_path)
00007     return _log_path
00008 
00009 
00010 

© Copyright 2008-2009 Vyper Logix Corp., All Right Reserved; If you reference this document or any part of this document you must use the citation verbatim (including the link) "© Copyright 2008-2009 Vyper Logix Corp., All Right Reserved."

Notice: This source code contained in this document is NOT open source and is NOT being distributed as open source.

122,241 lines of code and growing...