Fixed a bug that made copying files over to the project directory not work.
This commit is contained in:
parent
06364ff6a2
commit
b6fbf92a09
1 changed files with 1 additions and 1 deletions
|
|
@ -596,7 +596,7 @@ class CommandBase(object):
|
||||||
for setting in sgroup.values():
|
for setting in sgroup.values():
|
||||||
if setting.type == 'file' and setting.value:
|
if setting.type == 'file' and setting.value:
|
||||||
f_path = setting.value.replace(self.project_dir(), '')
|
f_path = setting.value.replace(self.project_dir(), '')
|
||||||
if not os.path.exists(f_path):
|
if os.path.isabs(f_path):
|
||||||
try:
|
try:
|
||||||
shutil.copy(setting.value, self.project_dir())
|
shutil.copy(setting.value, self.project_dir())
|
||||||
setting.value = os.path.basename(setting.value)
|
setting.value = os.path.basename(setting.value)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue