1
0
mirror of https://github.com/2martens/uni.git synced 2026-05-06 19:36:26 +02:00

[OE-Drucken] Fixed duplicate name

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2015-04-30 10:44:14 +02:00
parent 44a445f268
commit f58789e4df
3 changed files with 3 additions and 3 deletions

View File

@ -21,8 +21,8 @@ class Config:
def load_json_file(self): def load_json_file(self):
""" """
Loads the JSON config file Loads the JSON configuration file
:type self: oeprint.config.Config :type self: config.Config
:rtype : object :rtype : object
""" """
file = open(self.config_file, 'r', encoding='utf-8') file = open(self.config_file, 'r', encoding='utf-8')

View File

@ -16,7 +16,7 @@ def main():
parser.add_argument('prints', metavar='numberOfPrints', type=int, help='how often the build is printed') 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') parser.add_argument('--printer', dest='printer', help='a valid printer name like d116_sw', default='d116_sw')
arguments = parser.parse_args() arguments = parser.parse_args()
config = Config('config/config.json') config = Config('configuration/config.json')
build_data = config.load_build(arguments.build) build_data = config.load_build(arguments.build)
print(build_data) print(build_data)
# TODO add actual functionality # TODO add actual functionality