Hi Davide, 

when running w/o an output file specified, it will use a default name, but if you run the code in the same directory where the file is, then it will try to open and write: "/mymodel.py"
Now it's true that if you give an absolute path that starts with "/" it will remove it… so this is not the way to do it.

Cheers,
Clement
 
Le 16 sept. 2013 à 09:12, Davide Gerbaudo <notifications@github.com> a écrit :

> In python/runFBU.py:
> 
> > -    inputFile  = opts.inputFile
> > -    outputFile = opts.outputFile if opts.outputFile else os.path.dirname(inputFile)+'/'+'mymodel.py'
> > -    verbose    = opts.verbose
> > +    if not opts.template : parser.error('Template not given')
> > +    jsonData      = opts.data
> > +    jsonMig       = opts.matrix
> > +    jsonBkg       = opts.background
> > +    templateFile  = opts.template
> > +    modelFile     = opts.model if opts.model else os.path.dirname(templateFile)+'/'+'mymodel.py'
> > +    verbose       = opts.verbose
> > +
> > +    if verbose :
> > +        print 'Options:'
> > +        print '\n'.join("%s : %s"%(v, str(eval(v))) for v in ['jsonData','jsonMig','jsonBkg',
> > +                                                              'templateFile','modelFile'])
> > +    if modelFile[0]=='/': modelFile = modelFile[1:]
> What was this line meant to do? can please you clarify?
> 
> —
> Reply to this email directly or view it on GitHub.
>