Created
February 7, 2021 11:40
-
-
Save kasimte/797ba6c1521c34bd16b133957ddbbfae to your computer and use it in GitHub Desktop.
Revisions
-
kasimte created this gist
Feb 7, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ class Config: def __init__(self, a, b): self.a = a self.b = b config = Config(1, 2) script = "./my_script.py" # note the "" around config command = "python {script} \"{config}\"".format(script=script, config=vars(config)) os.system(command)