• Kirill Smelkov's avatar
    pygopath: Initial draft · 9c61f254
    Kirill Smelkov authored
    Module gopath provides way to import python modules by full path in a Go workspace.
    
    For example
    
        lonet = gopath.gimport('lab.nexedi.com/kirr/go123/xnet/lonet')
    
    will import either
    
        lab.nexedi.com/kirr/go123/xnet/lonet.py, or
        lab.nexedi.com/kirr/go123/xnet/lonet/__init__.py
    
    located somewhere under $GOPATH.
    9c61f254
gopath_test.py 2.15 KB