Closed isotes closed 4 years ago
Can we keep backwards compat for print=1
?
Can we keep backwards compat for
print=1
?
Updated
I would like to have a working example for import_file
as well. I've tested it with this Gist on my account. However, I would prefer if you could create a Gist in the importpw organization (or host the file on import.pw) for URL consistency. I would then update the example in api.md
.
@isotes Put the file in the test
dir and then you can reference the file such as https://import.pw/importpw/import/test/static/foo.sh (or a regular github raw link if you prefer).
Sounds good! Updated.
I first tried to have
import_file
as a separate function that is used byimport
, but sourcing requires access to a couple of other local variables. Therefore, this basically just makes theprint=1
trick explicit, as you proposed.