mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
lfcli_base fix if os.path.isdir command
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -537,7 +537,7 @@ class LFCliBase:
|
||||
userhome=os.path.expanduser('~')
|
||||
session = str(datetime.datetime.now().strftime("%Y-%m-%d-%H-h-%M-m-%S-s")).replace(':','-')
|
||||
if filename is None:
|
||||
if os.path.isdir("%s/report-data/%s" % (userhome, session)):
|
||||
if not os.path.isdir("%s/report-data/%s" % (userhome, session)):
|
||||
os.mkdir("%s/report-data/%s" % (userhome, session))
|
||||
filename = ("%s/report-data/%s/%s.log" % (userhome,session,scriptname))
|
||||
import logging
|
||||
|
||||
Reference in New Issue
Block a user