Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix/fix pip build command #67

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions visualdl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
from __future__ import absolute_import

import os

from .python.storage import *

ROOT = os.path.dirname(__file__)
10 changes: 5 additions & 5 deletions visualdl/server/visualDL
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ from optparse import OptionParser
from flask import (Flask, Response, redirect, request, send_file,
send_from_directory)

import visualdl
import visualdl.server
from visualdl.server import graph, lib
from visualdl.server import log as logger
from visualdl.server.log import logger
from visualdl.server.mock import data as mock_data
from visualdl.server.mock import data as mock_tags
from visualdl.python.storage import (LogWriter, LogReader)



app = Flask(__name__, static_url_path="")
# set static expires in a short time to reduce browser's memory usage.
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 30

SERVER_DIR = os.path.join(visualdl.ROOT, 'server')

def option_parser():
"""
Expand Down Expand Up @@ -51,8 +51,8 @@ def option_parser():

options, args = option_parser()
server_path = os.path.abspath(os.path.dirname(sys.argv[0]))
static_file_path = "./frontend/dist/"
mock_data_path = "./mock_data/"
static_file_path = os.path.join(SERVER_DIR, "./dist")
mock_data_path = os.path.join(SERVER_DIR, "./mock_data/")

log_reader = LogReader(options.logdir)

Expand Down