mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-03-22 22:26:18 +00:00
🔧 Schema catch missing pip
This commit is contained in:
parent
e33dafeb80
commit
9c86ca3a19
1 changed files with 6 additions and 2 deletions
|
@ -393,8 +393,12 @@ def main():
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print("Installing YAML module ...")
|
print("Installing YAML module ...")
|
||||||
import subprocess
|
import subprocess
|
||||||
subprocess.run(['python3', '-m', 'pip', 'install', 'pyyaml'])
|
try:
|
||||||
import yaml
|
subprocess.run(['python3', '-m', 'pip', 'install', 'pyyaml'])
|
||||||
|
import yaml
|
||||||
|
except:
|
||||||
|
print("Failed to install YAML module")
|
||||||
|
return
|
||||||
|
|
||||||
print("Generating YML ...")
|
print("Generating YML ...")
|
||||||
dump_yaml(schema, Path('schema.yml'))
|
dump_yaml(schema, Path('schema.yml'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue