Commit c85848b3 authored by vpodpecan's avatar vpodpecan

fixed small bug which occured only when not using devserver

parent 31fd878d
......@@ -100,7 +100,10 @@ def MUSE_string_to_file_finished(postdata, input_dict, output_dict):
from socket import getfqdn
import sys
DEVSERVER = (sys.argv[1].startswith('runserver'))
if len(sys.argv > 1):
DEVSERVER = sys.argv[1].startswith('runserver')
fqdn = '' if DEVSERVER else getfqdn()
fileURL = fqdn + postdata.get('fileURL')[0]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment