command line arg?
Posted
by kaushik
on Stack Overflow
See other posts from Stack Overflow
or by kaushik
Published on 2010-05-28T13:52:15Z
Indexed on
2010/05/28
14:22 UTC
Read the original article
Hit count: 169
This is a module named XYZ.
def func(x)
.....
.....
if __name__=="__main__":
print func(sys.argv[1])
Now I have imported this module in another code and want to use the func
. How can i use it?
import XYZ
After this, where to give the argument, and syntax on how to call it, please?
© Stack Overflow or respective owner