aboutsummaryrefslogtreecommitdiff
path: root/gconfig.py
blob: 489f83006152c97d1dbc79f60e4b78f73bf87d0f (plain)
1
2
3
4
5
6
7
8
9
10
11
import os
import shutil


def copy_config(def_config_path="config_def.py", usr_config_path="config.py"):
    if not os.path.exists(usr_config_path):
        if os.path.exists(def_config_path):
            shutil.copy(def_config_path, usr_config_path)


copy_config()