avoid double slashes
This commit is contained in:
parent
2c5f9823f2
commit
5769140845
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue