teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

追記

2020/01/29 03:55

投稿

Danrussia
Danrussia

スコア44

title CHANGED
File without changes
body CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  ![特定のフォルダ内にあるsvgファイル](eedaa10cf70909fdad3262f856008ad3.png)
13
13
 
14
- ### 該当のソースコード(訂正 2020/01/29/12:29/)
14
+ ### 該当のソースコード(訂正 2020/01/29/12:55/)
15
15
  ```ここに言語名を入力
16
16
  import subprocess
17
17
  import os
@@ -22,7 +22,7 @@
22
22
  name = (i[0:(len(i)-4)]) #svgを抜いた奴
23
23
  print(name)
24
24
  subprocess.call('"C://Users//For Programming//Documents//Python Scripts//Inkscape//inkscape.exe " + name + ".svg" + "-M" + name + ".emf" ',shell=True)
25
- subprocess.call('inkscape + name + ".svg" + "-M" + name + "emf" ',shell=True)
25
+ subprocess.call('inkscape + name + ".svg" + "-M" + name + ".emf" ',shell=True)
26
26
  ```
27
27
 
28
28
  ### 試したこと

1

コードの訂正

2020/01/29 03:55

投稿

Danrussia
Danrussia

スコア44

title CHANGED
File without changes
body CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  ![特定のフォルダ内にあるsvgファイル](eedaa10cf70909fdad3262f856008ad3.png)
13
13
 
14
- ### 該当のソースコード
14
+ ### 該当のソースコード(訂正 2020/01/29/12:29/)
15
15
  ```ここに言語名を入力
16
16
  import subprocess
17
17
  import os
@@ -20,7 +20,8 @@
20
20
 
21
21
  for i in lis:
22
22
  name = (i[0:(len(i)-4)]) #svgを抜いた奴
23
+ print(name)
23
- subprocess.call('"C://Users//For Programming//Documents//Python Scripts//Inkscape//inkscape.exe" + name + ".svg" + "-M" + name + ".emf" ',shell=True)
24
+ subprocess.call('"C://Users//For Programming//Documents//Python Scripts//Inkscape//inkscape.exe " + name + ".svg" + "-M" + name + ".emf" ',shell=True)
24
25
  subprocess.call('inkscape + name + ".svg" + "-M" + name + "emf" ',shell=True)
25
26
  ```
26
27