avoid double slashes

This commit is contained in:
j 2014-09-02 20:46:49 +02:00
parent 2c5f9823f2
commit 5769140845
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
cd "`dirname "$0"`" 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 if [[ ! -e "/usr/sbin/miredo" ]]; then
open -W ../Resources/miredo-osx-prerelease3.pkg open -W ../Resources/miredo-osx-prerelease3.pkg
fi fi

View file

@ -51,6 +51,7 @@ class Install(Thread):
status = {} status = {}
def __init__(self, target, httpd): def __init__(self, target, httpd):
target = os.path.normpath(os.path.join(os.path.abspath(target)))
self.target = target self.target = target
self.httpd = httpd self.httpd = httpd
Thread.__init__(self) Thread.__init__(self)
@ -59,7 +60,6 @@ class Install(Thread):
def run(self): def run(self):
target = self.target target = self.target
target = os.path.normpath(os.path.join(os.path.abspath(target)))
if not os.path.exists(target): if not os.path.exists(target):
os.makedirs(target) os.makedirs(target)
os.chdir(target) os.chdir(target)