Check activities dir exists
This commit is contained in:
parent
b67a967699
commit
3e1f404879
@ -23,6 +23,7 @@ def start(console):
|
||||
activities_dirs.append(os.path.expanduser('~/.sugar/activities'))
|
||||
|
||||
for activities_dir in activities_dirs:
|
||||
if os.path.isdir(activities_dir):
|
||||
for filename in os.listdir(activities_dir):
|
||||
if filename.endswith(".activity"):
|
||||
path = os.path.join(activities_dir, filename)
|
||||
|
Loading…
Reference in New Issue
Block a user