From 5769140845a7f0d08917f559e5e9ed3b57d7bfec Mon Sep 17 00:00:00 2001 From: j Date: Tue, 2 Sep 2014 20:46:49 +0200 Subject: [PATCH] avoid double slashes --- Open Media Library.app/Contents/MacOS/Open Media Library | 2 +- Open Media Library.app/Contents/MacOS/install.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Open Media Library.app/Contents/MacOS/Open Media Library b/Open Media Library.app/Contents/MacOS/Open Media Library index 2ec6be3..4af6a01 100755 --- a/Open Media Library.app/Contents/MacOS/Open Media Library +++ b/Open Media Library.app/Contents/MacOS/Open Media Library @@ -1,6 +1,6 @@ #!/bin/sh cd "`dirname "$0"`" -BASE="$HOME/Library/Application Support/Open Media Library/" +BASE="$HOME/Library/Application Support/Open Media Library" if [[ ! -e "/usr/sbin/miredo" ]]; then open -W ../Resources/miredo-osx-prerelease3.pkg fi diff --git a/Open Media Library.app/Contents/MacOS/install.py b/Open Media Library.app/Contents/MacOS/install.py index 26ba472..31adf0f 100755 --- a/Open Media Library.app/Contents/MacOS/install.py +++ b/Open Media Library.app/Contents/MacOS/install.py @@ -51,6 +51,7 @@ class Install(Thread): status = {} def __init__(self, target, httpd): + target = os.path.normpath(os.path.join(os.path.abspath(target))) self.target = target self.httpd = httpd Thread.__init__(self) @@ -59,7 +60,6 @@ class Install(Thread): def run(self): target = self.target - target = os.path.normpath(os.path.join(os.path.abspath(target))) if not os.path.exists(target): os.makedirs(target) os.chdir(target)