From 88e4703889c7b273f459fa1c1c9c6a183863ea52 Mon Sep 17 00:00:00 2001 From: Wesley Kerfoot Date: Sat, 1 Jun 2019 23:21:24 -0400 Subject: [PATCH 1/2] Fix imports --- deletefb/deletefb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deletefb/deletefb.py b/deletefb/deletefb.py index 54d0c66..db7dc25 100755 --- a/deletefb/deletefb.py +++ b/deletefb/deletefb.py @@ -6,10 +6,10 @@ import json import os import sys -from tools.common import logger -from tools.login import login -from tools.wall import delete_posts -from tools.likes import unlike_pages +from .tools.common import logger +from .tools.login import login +from .tools.wall import delete_posts +from .tools.likes import unlike_pages LOG = logger("deletefb") From ab81a7f9d67e30014576176ab57053e5eed2ace4 Mon Sep 17 00:00:00 2001 From: Wesley Kerfoot Date: Sat, 1 Jun 2019 23:30:31 -0400 Subject: [PATCH 2/2] Fix docs on how to call package manually --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c882e17..eea8211 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ You have several options to run it. 1) Install from PyPI with `pip install --user delete-facebook-posts` 2) Clone this repo and run `pip install --user .` or do `pip install --user git+https://github.com/weskerfoot/DeleteFB.git` -3) Set up a Python virtualenv, activate it, and run `pip install -r requirements.txt`, then you can just run `python deletefb` in the DeleteFB directory. +3) Set up a Python virtualenv, activate it, and run `pip install -r requirements.txt`, then you can just run `python -m deletefb.deletefb` in the DeleteFB directory. ## How To Use It