[Sugar-devel] Sugar-devel Digest, Vol 63, Issue 73

Manuel Quiñones manuq at laptop.org
Wed Jan 22 08:47:52 EST 2014


2014/1/22 Tony Anderson <tony_anderson at usa.net>:
> Hi,
>
> The original sugar-launch intended to provide this capability. It requires
> only
> a few lines of code.
>
> parser.add_option("-o","--object_id",action="store_true",dest="object_id",
>                   help="resume activity with object")
> parser.add_option("-u","--object_uri",action="store_true",dest="object_uri",
>                   help="path to file")
>
> adds the -o and -u option. In practice, I use the -o option.
>
> if options.object_id:
>     cmd_args.append("-o")
>     cmd_args.append(args[1])
> if options.object_uri:
>     cmd_args.append("-u")
>     cmd_args.append(args[1])
>
> added after the if options.debug sets the option at launch.

Thanks for the information Tony.  This matches Martin Abente's patch.

-- 
.. manuq ..


More information about the Sugar-devel mailing list