bu daha doğru..
work dizini içerisine install dizini hiyerarşisini oluşturuyor aksi taktirde.
This commit is contained in:
@@ -17,6 +17,8 @@ PISI Configuration module is used for gathering and providing
|
|||||||
regular PISI configurations.
|
regular PISI configurations.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from os import getcwd
|
||||||
|
|
||||||
import gettext
|
import gettext
|
||||||
__trans = gettext.translation('pisi', fallback=True)
|
__trans = gettext.translation('pisi', fallback=True)
|
||||||
_ = __trans.ugettext
|
_ = __trans.ugettext
|
||||||
@@ -58,7 +60,10 @@ class Config(object):
|
|||||||
def dest_dir(self):
|
def dest_dir(self):
|
||||||
dir = self.get_option('destdir')
|
dir = self.get_option('destdir')
|
||||||
if dir:
|
if dir:
|
||||||
|
if dir.strip()[0] == '/':
|
||||||
dir = str(dir)
|
dir = str(dir)
|
||||||
|
else:
|
||||||
|
dir = join(getcwd(), dir)
|
||||||
else:
|
else:
|
||||||
dir = self.values.general.destinationdirectory
|
dir = self.values.general.destinationdirectory
|
||||||
import os.path
|
import os.path
|
||||||
|
|||||||
Reference in New Issue
Block a user