algo-builder icon indicating copy to clipboard operation
algo-builder copied to clipboard

Allow `getProgram` to compile files outside of assets directory

Open MacroChip opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe.

I'd like to be able to use getProgram in one project to compile another project's pyteal

Describe the solution you'd like

A few options. Could search both assets folder and the given path. Or a flag that explicitly says that filename is a path instead of assuming it's a file in assets.

Additional context

Add any other context or screenshots about the feature request here.

MacroChip avatar Jun 26 '22 18:06 MacroChip

Could you share some motivation? Why do you think it's useful? We want to enforce a project structure, and have projects self contained. Maybe as a workaround you can do a symbolic link?

robert-zaremba avatar Jul 01 '22 10:07 robert-zaremba

I have a project with multiple modules. One module loads pyteal from another module. Symlinks are fine for this but of course require setting up properly.

Another use case is that I have a project that builds pyteal from any arbitrary project.

I was hoping that my proposed solutions could target the opinionated project structure while also allowing other files to load.

MacroChip avatar Jul 01 '22 22:07 MacroChip

OK, we can add it.

robert-zaremba avatar Jul 02 '22 04:07 robert-zaremba

Already done in the develop version.

robert-zaremba avatar Oct 28 '22 07:10 robert-zaremba