Skip to content

Commit

Permalink
Savepoint
Browse files Browse the repository at this point in the history
  • Loading branch information
skytreader committed Oct 21, 2018
1 parent c0797cc commit a5b5748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/stat_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __setup(self):
if not os.path.isdir(stats_dir) and not os.path.isfile(stats_dir):
print("stats directory does not exist, creating...")
os.mkdir(stats_dir)
self.__ensure_data_dir_exists()
self.__ensure_data_dir_state()

def __determine_runner(self):
dot_split = self.script_path.split(os.extsep)
Expand All @@ -45,7 +45,7 @@ def __write_stat_doc(self, doc_fname, doc):
def __make_data_dir_name(self):
parsed_path = []
if self.runner == "python3":
parsed_path = self.script_path.split(".")
parsed_path = self.script_path.split(".")[1:]
else:
parsed_path = self.script_path.split(os.path.sep)

Expand All @@ -54,7 +54,7 @@ def __make_data_dir_name(self):
def __make_data_dir_path(self):
return os.path.join(os.curdir, "stats", self.__make_data_dir_name())

def __ensure_data_dir_exists(self):
def __ensure_data_dir_state(self):
data_dir_path = self.__make_data_dir_path()
if not os.path.isdir(data_dir_path) and not os.path.isfile(data_dir_path):
print("data dir for %s does not exist, creating..." % self.script_path)
Expand Down

0 comments on commit a5b5748

Please sign in to comment.