File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 426426 "source" : [
427427 " #| export\n " ,
428428 " def set_pystata_path(stata_dir=None):\n " ,
429- " stata_dir = stata_dir.strip('\" ')\n " ,
430- " stata_dir = stata_dir.replace(\" '\" , \"\" )\n " ,
429+ " stata_dir = stata_dir.strip('\"\\ '')\n " ,
431430 " if stata_dir is None:\n " ,
432431 " stata_dir, _ = find_dir_edition()\n " ,
433432 " if not os.path.isdir(stata_dir):\n " ,
Original file line number Diff line number Diff line change @@ -114,8 +114,7 @@ def find_edition(stata_dir):
114114
115115# %% ../nbs/01_config.ipynb 25
116116def set_pystata_path (stata_dir = None ):
117- stata_dir = stata_dir .strip ('"' )
118- stata_dir = stata_dir .replace ("'" , "" )
117+ stata_dir = stata_dir .strip ('"\' ' )
119118 if stata_dir is None :
120119 stata_dir , _ = find_dir_edition ()
121120 if not os .path .isdir (stata_dir ):
You can’t perform that action at this time.
0 commit comments