Skip to content

Commit

Permalink
resolving errors in paths found with MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
vinay0000 committed Sep 3, 2023
1 parent cf6cdbe commit e80b321
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bin/eosimapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@

def main(loglevel):

current_directory = os.path.dirname(os.path.abspath(__file__))
web_dir = os.path.join(current_directory, '../cesium_app/')
examples_dir = os.path.join(current_directory, '../examples')

# Start web server in the cesium_app directory (which contains the `index.html` file which then references the eosimApp.js script).
httpd = HTTPServer(('localhost', 8080), SimpleHTTPRequestHandler)
def start_webserver():
web_dir = os.path.join(os.path.dirname(__file__), '../cesium_app/')
def start_webserver():
os.chdir(web_dir)
print("server starting")
httpd.serve_forever()
threading.Thread(target=start_webserver).start() # creating a thread so that the GUI doesn't freeze.

os.chdir(os.path.join(os.path.dirname(__file__), '../examples')) # change directory to examples
os.chdir(examples_dir) # change directory to examples
root = tk.Tk()
root.resizable(False, False)
MainApplication(root, loglevel)
Expand Down

0 comments on commit e80b321

Please sign in to comment.