Commit fde98eb9 authored by Cédric Bonhomme's avatar Cédric Bonhomme

Updated README.

parent d055ea9e
......@@ -13,6 +13,7 @@ For further instructions, please see http://siis.cse.psu.edu/primo
# Usage
## As an application
```shell
$ primo --protodir ic3-output/ --dumpintentlinks links.blp
......@@ -34,3 +35,27 @@ $ make_plots_and_stats --input links.blp --out stats/
2016-05-10 09:20:41,731 [root] [INFO ] Plotting link CDF.
2016-05-10 09:20:42,272 [root] [INFO ] Finished plotting link CDF.
```
## As a module
```python
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from primo.linking.fetch_data import FetchData
if __name__ == "__main__":
# Point of entry in execution mode
file_path = sys.argv[1:]
apps, components, intents, intent_filters = FetchData(file_path, "", True)
print("")
for app in apps:
print(app.name)
print("""\tSends external intent: {}
Has publicly accessible component: {}""". \
format(app.SendsExternalIntent(),
app.HasOpenComponent()))
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment