소스 검색

Export file without extention in its name

Kentaro Wada 1 년 전
부모
커밋
7073205a95
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      labelme/cli/export_json.py

+ 1 - 1
labelme/cli/export_json.py

@@ -20,7 +20,7 @@ def main():
     json_file = args.json_file
 
     if args.out is None:
-        out_dir = osp.basename(json_file).replace(".", "_")
+        out_dir = osp.splitext(osp.basename(json_file))[0]
         out_dir = osp.join(osp.dirname(json_file), out_dir)
     else:
         out_dir = args.out