Skip to content

Commit

Permalink
cache directory creation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Kenan committed Jul 12, 2022
1 parent 3bc3ffe commit 708c592
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
4 changes: 4 additions & 0 deletions LogT.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import sys
import os

if not os.path.isdir('cache'):
os.makedirs('cache')

class Logger(object):
def __init__(self):
Expand Down
3 changes: 3 additions & 0 deletions Logger.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import sys
import os
if not os.path.isdir('cache'):
os.makedirs('cache')

class Logger(object):
def __init__(self):
Expand Down
1 change: 0 additions & 1 deletion cache/logs.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
['Declarations', 'string name = "kenan"', 'num age', 'input name', 'input age']
19 changes: 0 additions & 19 deletions cache/logstest.txt

This file was deleted.

0 comments on commit 708c592

Please sign in to comment.