Re: File Path/Global name issue

2014-03-20 Thread John Gordon
In <2089d20b-aa60-462f-aad0-51109849c...@googlegroups.com> roy.snuff...@gmail.com writes: > I am currently running code for a program called HotNet > (https://github.com/raphael-group/hotnet) > In its simpleRun.py file, there is a place to insert a file path to be run. > parser.add_argument('

Re: File Path/Global name issue

2014-03-20 Thread Peter Otten
roy.snuff...@gmail.com wrote: > I am currently running code for a program called HotNet > (https://github.com/raphael-group/hotnet) > > In its simpleRun.py file, there is a place to insert a file path to be > run. > > parser.add_argument('-mf', '--infmat_file', required=True, >

Re: File Path/Global name issue

2014-03-20 Thread Skip Montanaro
On Thu, Mar 20, 2014 at 3:08 PM, wrote: > simpleRun.py: error: argument -mf/--infmat_file is required I think you are misinterpreting the actual purpose of the parser_add_argument() call. It's telling you that *on the command line* you can specify it using either -mf some-file-name or --infma

Re: File Path/Global name issue

2014-03-20 Thread roy . snuffles
Hi Skip! Thank you so much for the response. When I put quotes around the file name I receive this output. simpleRun.py: error: argument -mf/--infmat_file is required -- https://mail.python.org/mailman/listinfo/python-list

Re: File Path/Global name issue

2014-03-20 Thread Skip Montanaro
On Thu, Mar 20, 2014 at 2:55 PM, wrote: > File "simpleRun.py", line 29 > help= ~/home/lai/Downloads/influence_matrix_files/hprd_inf_.mat) >^ > SyntaxError: invalid syntax You need quotes around the filename. It's a string literal. Skip -- https://mail.python.org/mailman/listinf