diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2013-05-05 15:15:36 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2013-05-05 15:15:36 (GMT) |
commit | 3edd183539c28fd9ee642df4159f6ba90876910c (patch) | |
tree | 709111991bc2a76ce39235c239c6b08291e58729 | |
parent | f110a1687bc62c123d2997094f38bd0b87e48cb8 (diff) |
realpath utility might not be installed by default
-rwxr-xr-x | misc/sugar-network-sync | 2 | ||||
-rw-r--r-- | tests/__init__.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/misc/sugar-network-sync b/misc/sugar-network-sync index c8dc594..8d19813 100755 --- a/misc/sugar-network-sync +++ b/misc/sugar-network-sync @@ -151,7 +151,7 @@ FS= disk_limit=$(expr 1024 \* 1024 \* 10) if [ $# -eq 0 ]; then - if [ "$(basename $(dirname $(realpath $0)))" = "sugar-network-sync" ]; then + if [ "$(basename $(dirname $0))" = "sugar-network-sync" ]; then # Script was launched from sync directory, so, process sync sync_path="$(dirname $0)" else diff --git a/tests/__init__.py b/tests/__init__.py index 5709c70..52e5706 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -71,6 +71,7 @@ class Test(unittest.TestCase): os.environ['XDG_DATA_HOME'] = tmpdir + '/share' os.environ['SUGAR_LOGGER_LEVEL'] = 'all' os.environ['HOME'] = tmpdir + os.environ['LC_ALL'] = 'en_US.UTF-8' profile_dir = join(tmpdir, '.sugar', 'default') os.makedirs(profile_dir) shutil.copy(join(root, 'data', 'owner.key'), join(profile_dir, 'owner.key')) |