Simple fix for getting the activities dir.

This commit is contained in:
Tomeu Vizoso 2007-02-03 11:10:49 +01:00
parent 4e267c18bf
commit 9b6d7c6292

View File

@ -22,6 +22,7 @@ import os
import zipfile import zipfile
import shutil import shutil
from sugar import env
from sugar.activity.bundle import Bundle from sugar.activity.bundle import Bundle
class _SvnFileList(list): class _SvnFileList(list):
@ -103,7 +104,7 @@ setup.py help - print this message \n\
' '
def cmd_dev(): def cmd_dev():
bundle_path = os.path.join(_get_activities_path(), _get_bundle_dir()) bundle_path = os.path.join(env.get_user_activities_dir(), _get_bundle_dir())
try: try:
os.symlink(_get_source_path(), bundle_path) os.symlink(_get_source_path(), bundle_path)
except OSError: except OSError: