Export and run in console



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?


i have this:

using PyCall, FileIO
@pyimport SimpleCV

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

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

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!


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