BlockCatIO / solidity-flattener

A python utility to flatten Solidity code with imports into a single file.
MIT License
267 stars 98 forks source link

Multiple solc paths not supported? #5

Open rsxdalv opened 6 years ago

rsxdalv commented 6 years ago

I've tried a number of options, none of which allow specifying multiple solc-paths: ... --solc-paths="a=b,c=d" ... --solc-paths="a=b;c=d" ... --solc-paths="'a=b''c=d'" ... --solc-paths="a=b c=d" ... --solc-paths="a=b" --solc-paths="c=d" (gets overriden)

Better documentation or enabling this feature would help, since solidity itself does support them.

XertroV commented 6 years ago

Try comma at end.

This is on the solc side - have never been able to get --allow-paths working without it

Also, because #11 was not merged correctly the --allow-paths flag was dropped.

Here's what I'd try

solidity_flattener --solc-paths "--allow-paths a=b,c=d,"

AFAIK that is the only way you could make it work without patching core.py

pstuermlinger commented 6 years ago

solidity_flattener --solc-paths="--allow-paths a=b,c=d," This produces a unrecognised option '--allow-paths a=b,c=d,'

brianmcmichael commented 4 years ago

+1 can't seem to get this to work using the suggested option.