Export and run in console

question

#1

I hope that you are well. I have a question, how might i export a series of functions and at the same time be able to use them from console?

Ex:

i have this:

using PyCall, FileIO
@pyimport SimpleCV

function backg(path::String, save_path::String)
  ...
end

# __name__ == "__main__"
if length(ARGS) == 2
  backg(ARGS[1], ARGS[2])
end

What might i do to be able to export this function and at the same time use her in the console with the given arguments? Thank you!


#2

I think this might be what you’re looking for: “Import guard” in julia