<s> import sys <EOL> from os . path import join , dirname , abspath , normpath , realpath , isdir <EOL> ROOT_DIR = dirname ( dirname ( abspath ( __file__ ) ) ) <EOL> def serverdir ( ) : <EOL> """<STR_LIT>""" <EOL> path = join ( ROOT_DIR , '<STR_LIT>' ) <EOL> path = normpath ( path ) <EOL> if sys . platform == '<STR_LIT>' : path = realpath ( path ) <EOL> return path <EOL> def bokehjsdir ( dev = False ) : <EOL> """<STR_LIT>""" <EOL> dir1 = join ( ROOT_DIR , '<STR_LIT:..>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> dir2 = join ( serverdir ( ) , '<STR_LIT>' ) <EOL> if dev and isdir ( dir1 ) : <EOL> return dir1 <EOL> else : <EOL> return dir2 </s>
