import os

with open(os.path.join(os.path.dirname(__file__), "webclient/VERSION")) as f:
    __version__ = f.read().strip()

import os

def installed_location():
    return __file__

with open(os.path.join(os.path.dirname(installed_location()), "webclient/VERSION")) as f:
    __version__ = f.read().strip()

Add an 'installed_location()' function so syweb can report its own location
Add an 'installed_location()' function so syweb can report its own location

  import os
  
+ def installed_location():
+     return __file__
+ 
- with open(os.path.join(os.path.dirname(__file__), "webclient/VERSION")) as f:
+ with open(os.path.join(os.path.dirname(installed_location()), "webclient/VERSION")) as f:
      __version__ = f.read().strip()
  
Add an 'installed_location()' function so syweb can report its own location
## Code Before:
import os

with open(os.path.join(os.path.dirname(__file__), "webclient/VERSION")) as f:
    __version__ = f.read().strip()

## Instruction:
Add an 'installed_location()' function so syweb can report its own location
## Code After:
import os

def installed_location():
    return __file__

with open(os.path.join(os.path.dirname(installed_location()), "webclient/VERSION")) as f:
    __version__ = f.read().strip()
