Check activities dir exists

This commit is contained in:
Marco Pesenti Gritti 2006-05-18 12:17:25 -04:00
parent b67a967699
commit 3e1f404879

View File

@ -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)