Created
February 17, 2020 14:44
-
-
Save easysugar/7cc41e3381d44895ea63f28a34b3e64c to your computer and use it in GitHub Desktop.
Script for create startup python code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import site | |
path = site.getusersitepackages() + '/sitecustomize.py' | |
command = ''' | |
from settings.py import * | |
''' | |
with open(path, 'w') as f: | |
f.write(command) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment