File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -495,6 +495,9 @@ def printSummary(self):
495
495
_printList (f'Copy auto completion script to "{ AUTOCOMPLETE_DIR } ":' , [self .op ])
496
496
497
497
def execute (self ):
498
+ # ensure target dir is created
499
+ os .makedirs (AUTOCOMPLETE_DIR , exist_ok = True )
500
+
498
501
logFile = self .app .getLogFile (CMD_AUTOCOMPLETE )
499
502
with open (logFile , 'a' ) as log :
500
503
shutil .copyfile (self .op .src , self .op .dst )
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ def setUp(self):
34
34
os .makedirs (opt .OPT_DIR , exist_ok = True )
35
35
os .makedirs (opt .BIN_DIR , exist_ok = True )
36
36
os .makedirs (opt .DESKTOP_DIR , exist_ok = True )
37
- os .makedirs (opt .AUTOCOMPLETE_DIR , exist_ok = True )
38
37
os .makedirs (opt .ICON_DIR , exist_ok = True )
39
38
40
39
def tearDown (self ):
You can’t perform that action at this time.
0 commit comments