mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 11:26:25 +02:00
[OE-Drucken] Fixed duplicate name
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -21,8 +21,8 @@ class Config:
|
||||
|
||||
def load_json_file(self):
|
||||
"""
|
||||
Loads the JSON config file
|
||||
:type self: oeprint.config.Config
|
||||
Loads the JSON configuration file
|
||||
:type self: config.Config
|
||||
:rtype : object
|
||||
"""
|
||||
file = open(self.config_file, 'r', encoding='utf-8')
|
||||
|
||||
@ -16,7 +16,7 @@ def main():
|
||||
parser.add_argument('prints', metavar='numberOfPrints', type=int, help='how often the build is printed')
|
||||
parser.add_argument('--printer', dest='printer', help='a valid printer name like d116_sw', default='d116_sw')
|
||||
arguments = parser.parse_args()
|
||||
config = Config('config/config.json')
|
||||
config = Config('configuration/config.json')
|
||||
build_data = config.load_build(arguments.build)
|
||||
print(build_data)
|
||||
# TODO add actual functionality
|
||||
|
||||
Reference in New Issue
Block a user