@@ -29,7 +29,7 @@ def __setup(self):
29
29
if not os .path .isdir (stats_dir ) and not os .path .isfile (stats_dir ):
30
30
print ("stats directory does not exist, creating..." )
31
31
os .mkdir (stats_dir )
32
- self .__ensure_data_dir_exists ()
32
+ self .__ensure_data_dir_state ()
33
33
34
34
def __determine_runner (self ):
35
35
dot_split = self .script_path .split (os .extsep )
@@ -45,7 +45,7 @@ def __write_stat_doc(self, doc_fname, doc):
45
45
def __make_data_dir_name (self ):
46
46
parsed_path = []
47
47
if self .runner == "python3" :
48
- parsed_path = self .script_path .split ("." )
48
+ parsed_path = self .script_path .split ("." )[ 1 :]
49
49
else :
50
50
parsed_path = self .script_path .split (os .path .sep )
51
51
@@ -54,7 +54,7 @@ def __make_data_dir_name(self):
54
54
def __make_data_dir_path (self ):
55
55
return os .path .join (os .curdir , "stats" , self .__make_data_dir_name ())
56
56
57
- def __ensure_data_dir_exists (self ):
57
+ def __ensure_data_dir_state (self ):
58
58
data_dir_path = self .__make_data_dir_path ()
59
59
if not os .path .isdir (data_dir_path ) and not os .path .isfile (data_dir_path ):
60
60
print ("data dir for %s does not exist, creating..." % self .script_path )
0 commit comments