Only add logs directory if it doesn't exist.
This commit is contained in:
parent
96b43c6766
commit
2f1fdfaf5a
|
|
@ -359,6 +359,7 @@ def run_file(self=None):
|
||||||
if not os.path.exists(os.getenv('HOME')+'/mm.cfg'):
|
if not os.path.exists(os.getenv('HOME')+'/mm.cfg'):
|
||||||
with open(os.getenv('HOME')+'/mm.cfg', "w") as mm:
|
with open(os.getenv('HOME')+'/mm.cfg', "w") as mm:
|
||||||
mm.write("ErrorReportingEnable=1\nTraceOutputFileEnable=1")
|
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")
|
os.mkdir(os.getenv('HOME')+"/Library/Preferences/Macromedia/Flash Player/Logs")
|
||||||
with open(logloc, "w") as f:
|
with open(logloc, "w") as f:
|
||||||
f.write("")
|
f.write("")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue