Merge pull request #460 from 3b1b/no_media_dir

Don't write media_dir
This commit is contained in:
Devin Neal 2019-02-28 13:36:13 -08:00 committed by GitHub
commit a47ef5323c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,8 +19,6 @@ if not os.path.isdir(MEDIA_DIR):
f"Media will be stored in {MEDIA_DIR + os.sep}. You can change " f"Media will be stored in {MEDIA_DIR + os.sep}. You can change "
"this behavior by writing a different directory to media_dir.txt." "this behavior by writing a different directory to media_dir.txt."
) )
with open("media_dir.txt", 'w') as media_file:
media_file.write(MEDIA_DIR)
VIDEO_DIR = os.path.join(MEDIA_DIR, "videos") VIDEO_DIR = os.path.join(MEDIA_DIR, "videos")
RASTER_IMAGE_DIR = os.path.join(MEDIA_DIR, "designs", "raster_images") RASTER_IMAGE_DIR = os.path.join(MEDIA_DIR, "designs", "raster_images")