Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
Default to worrking directory was overriding user-entered directory.
  • Loading branch information
sisygoboom committed Dec 1, 2018
1 parent 23c93a4 commit 0ddbedb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions abuse_detection_steemit.py
Expand Up @@ -32,7 +32,8 @@ def __init__(
self,
min_usd_reward=0,
max_time_hours=36,
containing_folder=None):
containing_folder=None
):
# initialise variables
self.min_usd_reward = min_usd_reward
self.max_time_hours = max_time_hours
Expand All @@ -54,7 +55,8 @@ def __init__(
self.bchn = Blockchain(self.s)
set_shared_steem_instance(self.s)

self.containing_folder = os.getcwd()
if not containing_folder:
self.containing_folder = os.getcwd()
if not self.containing_folder.endswith('/'):
self.containing_folder += '/'

Expand Down

0 comments on commit 0ddbedb

Please sign in to comment.