Skip to content

Instantly share code, notes, and snippets.

@easysugar
Created February 17, 2020 14:44
Show Gist options
  • Save easysugar/7cc41e3381d44895ea63f28a34b3e64c to your computer and use it in GitHub Desktop.
Save easysugar/7cc41e3381d44895ea63f28a34b3e64c to your computer and use it in GitHub Desktop.
Script for create startup python code
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