Only add logs directory if it doesn't exist.

This commit is contained in:
Skyler Lehmkuhl 2013-01-05 15:13:29 -05:00
parent 96b43c6766
commit 2f1fdfaf5a
1 changed files with 2 additions and 1 deletions

View File

@ -359,6 +359,7 @@ def run_file(self=None):
if not os.path.exists(os.getenv('HOME')+'/mm.cfg'):
with open(os.getenv('HOME')+'/mm.cfg', "w") as mm:
mm.write("ErrorReportingEnable=1\nTraceOutputFileEnable=1")
if not os.path.exists(os.getenv('HOME')+"/Library/Preferences/Macromedia/Flash Player/Logs"):
os.mkdir(os.getenv('HOME')+"/Library/Preferences/Macromedia/Flash Player/Logs")
with open(logloc, "w") as f:
f.write("")