Skip to content

Commit

Permalink
Actually fix windows compatablility
Browse files Browse the repository at this point in the history
  • Loading branch information
Astatin3 authored Dec 3, 2023
1 parent 503fc5b commit 7664cef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

# Windows is weird, and flask expects linux-styled directories, even in windows.
if platform in ['nt', 'win32', 'win64']:
webroot = webroot.split(':')[0].replace('\\', '/')
dataroot = dataroot.split(':')[0].replace('\\', '/')
webroot = webroot.split(':')[1].replace('\\', '/')
dataroot = dataroot.split(':')[1].replace('\\', '/')

Username = 'Username'
selectedEvent = ''
Expand Down Expand Up @@ -302,4 +302,4 @@ def sendViaWifi(ip, dirname, files):


if __name__ == '__main__':
socketio.run(app, port=4388, host='0.0.0.0')
socketio.run(app, port=4388, host='0.0.0.0')

0 comments on commit 7664cef

Please sign in to comment.