Fixed a bug that made copying files over to the project directory not work.

This commit is contained in:
Joey Payne 2015-01-27 22:40:03 +13:00
commit b6fbf92a09

View file

@ -596,7 +596,7 @@ class CommandBase(object):
for setting in sgroup.values():
if setting.type == 'file' and setting.value:
f_path = setting.value.replace(self.project_dir(), '')
if not os.path.exists(f_path):
if os.path.isabs(f_path):
try:
shutil.copy(setting.value, self.project_dir())
setting.value = os.path.basename(setting.value)