mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 12:27:44 +00:00
Added the strip command and removed unused security (that cannot be used)
This commit is contained in:
parent
9e3c0d0c8b
commit
c0fbf08b08
1 changed files with 1 additions and 3 deletions
|
|
@ -16,9 +16,7 @@ if not (env_MEDIA_DIR is None):
|
|||
MEDIA_DIR = env_MEDIA_DIR
|
||||
elif os.path.exists("media_dir.txt"):
|
||||
with open("media_dir.txt", 'rU') as media_file:
|
||||
MEDIA_DIR = media_file.readline()
|
||||
if MEDIA_DIR[-1] in ['\n', '\r']:
|
||||
raise Exception("media_dir.txt must be a single-line text file pointing at the media_dir place")
|
||||
MEDIA_DIR = media_file.readline().strip()
|
||||
else:
|
||||
MEDIA_DIR = os.path.join(
|
||||
os.path.expanduser('~'),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue