exception thrown if .cycle dir does not exist
Status: Beta
Brought to you by:
altgo
When first starting up the program, it throws an
exception if it can't find ~/.cycle. The fix is simple:
if os.path.exists(p):
files=os.listdir(p)
else:
os.mkdir(p)
files = []
[dialogs.py, line 183]
I just added the else case and it all works.
Logged In: YES
user_id=2090970
Originator: NO
The else block is unnecessary, just add an empty list declaration for files before the if statement. The directory will be created later when the first user is created.