Fixed typo
This commit is contained in:
parent
d3955f29c9
commit
2e461efb59
@ -32,10 +32,11 @@ if __name__ == '__main__':
|
|||||||
logging.basicConfig(level=logging.INFO,filename=args.log)
|
logging.basicConfig(level=logging.INFO,filename=args.log)
|
||||||
|
|
||||||
# Parse config
|
# Parse config
|
||||||
config_path = os.path.normpath(config_path)
|
config_path = os.path.normpath(args.config)
|
||||||
file_descriptor = open(os.path.normpath(os.path.expanduser(os.path.expandvars(config_path))))
|
file_descriptor = open(os.path.normpath(os.path.expanduser(os.path.expandvars(config_path))))
|
||||||
self._config = yaml.safe_load(file_descriptor)
|
self._config = yaml.safe_load(file_descriptor)
|
||||||
if not isinstance(self._config,dict) :
|
if not isinstance(self._config,dict) :
|
||||||
raise ValueError('expected dictonary as top-level yaml object')
|
raise ValueError('expected dictonary as top-level yaml object')
|
||||||
|
|
||||||
|
# Main functions
|
||||||
print('Hello World!')
|
print('Hello World!')
|
||||||
|
Loading…
Reference in New Issue
Block a user