Skip to content

Commit

Permalink
Pongo argv como argumento del main
Browse files Browse the repository at this point in the history
	modified:   make.py
  • Loading branch information
maurob committed Nov 9, 2013
1 parent 2f6e263 commit 93ca13d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

from compile import compile

def main():
from sys import argv
def main(*argv):
if len(argv) >= 2:
try:
compile(argv[1])
Expand All @@ -17,4 +16,5 @@ def main():
print 'usage: {0} file.cpp'.format(*argv)

if __name__ == '__main__':
main()
from sys import argv
main(*argv)

0 comments on commit 93ca13d

Please sign in to comment.