tokenika / eosfactory

Python-based EOS smart-contract development & testing framework
http://eosfactory.io/
Other
243 stars 62 forks source link

project_from_template fails mysteriously if directory already exists. #56

Closed noisy closed 5 years ago

noisy commented 5 years ago

After running twice script:

from eosf import *
project_from_template("foo_bar", template="01_hello_world")

For the second time, user gets:

Traceback (most recent call last):
  File "run.py", line 4, in <module>
    project_from_template("foo_bar", template="01_hello_world")
  File "/home/noisy/Devel/EOS/factory/pyteos/efcon.py", line 35, in project_from_template
    '''.format(result.contract_path_absolute))
AttributeError: 'TemplateCreate' object has no attribute 'contract_path_absolute'

Expected behavior:

User should be informed that he need to chose different name, or have a possibility to override a directory

noisy commented 5 years ago

This seems to be fixed on dev branch: selection_999 159