Skip to content

Instantly share code, notes, and snippets.

@hulucc
Last active November 7, 2019 20:19
Show Gist options
  • Save hulucc/669b3f9cc379f017840285fb2bed3387 to your computer and use it in GitHub Desktop.
Save hulucc/669b3f9cc379f017840285fb2bed3387 to your computer and use it in GitHub Desktop.
# make pipenv lock uwsgi works under windows
# add func to os.py in virtualenv
def uname():
import inspect
caller = inspect.getmodule(inspect.stack()[1][0]).__name__
if caller == 'uwsgiconfig':
return ("", "", "", "", "")
raise AttributeError()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment