Reading URL #122
Answered
by
pmp-p
erasmushaggblom
asked this question in
Q&A
Reading URL
#122
-
Hi all, As a follow-up to my previous issue (#120), when my game is deployed, the players will access it from a URL containing a unique identifier (eg. <main_url>?id=232jaklzo). I need to be able to read the URL from the game to make sure that the identifier is valid. I have not been able to figure out how to do so, is it feasible? |
Beta Was this translation helpful? Give feedback.
Answered by
pmp-p
Oct 11, 2023
Replies: 1 comment 1 reply
-
you will find "id=232jaklzo" in PyConfig.orig_argv, sys.argv is after the # not the ? eg
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pmp-p
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you will find "id=232jaklzo" in PyConfig.orig_argv, sys.argv is after the # not the ?
eg
?cpython311&-i&-X&dev#main.py 0 1 2 3 will give