Pastebin
Paste #8894: main.py
< previous paste - next paste>
Pasted by Anonymous Coward
import os
from config import cfg
def main():
try:
config_file_path = sys.argv[1]
print(config_file_path)
except IndexError:
# If no config file was provided use 'config.yml' in same folder as main
config_file_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "config.yml")
if __name__ == "__main__":
main()
New Paste
Go to most recent paste.