@@ -29,7 +29,7 @@ def __setup(self):
2929 if not os .path .isdir (stats_dir ) and not os .path .isfile (stats_dir ):
3030 print ("stats directory does not exist, creating..." )
3131 os .mkdir (stats_dir )
32- self .__ensure_data_dir_exists ()
32+ self .__ensure_data_dir_state ()
3333
3434 def __determine_runner (self ):
3535 dot_split = self .script_path .split (os .extsep )
@@ -45,7 +45,7 @@ def __write_stat_doc(self, doc_fname, doc):
4545 def __make_data_dir_name (self ):
4646 parsed_path = []
4747 if self .runner == "python3" :
48- parsed_path = self .script_path .split ("." )
48+ parsed_path = self .script_path .split ("." )[ 1 :]
4949 else :
5050 parsed_path = self .script_path .split (os .path .sep )
5151
@@ -54,7 +54,7 @@ def __make_data_dir_name(self):
5454 def __make_data_dir_path (self ):
5555 return os .path .join (os .curdir , "stats" , self .__make_data_dir_name ())
5656
57- def __ensure_data_dir_exists (self ):
57+ def __ensure_data_dir_state (self ):
5858 data_dir_path = self .__make_data_dir_path ()
5959 if not os .path .isdir (data_dir_path ) and not os .path .isfile (data_dir_path ):
6060 print ("data dir for %s does not exist, creating..." % self .script_path )
0 commit comments