Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Help:LimeSurvey/Demo Psychopy
(view source)
Revision as of 15:26, 1 February 2015
48 bytes removed
,
15:26, 1 February 2015
→Demo entering a survey after a Psychopy experiment
Line 9:
Line 9:
url = "https://survey.socsci.ru.nl/index.php/survey/index/sid/459278/newtest/Y/lang/en?token={:d}".format(participantID)
url = "https://survey.socsci.ru.nl/index.php/survey/index/sid/459278/newtest/Y/lang/en?token={:d}".format(participantID)
import os
import os
+
if sys.platform == 'win32':
if sys.platform == 'win32':
−
#
windows has no command to start the
default browser
, hope this one exists
+
#
open url with
default browser
−
os.system("
chrome.exe
"+url)
+
os.system("
start
"+url)
else:
else:
# this selects the default browser in most Unices
# this selects the default browser in most Unices
Wilbert.vanham
Administrators
414
edits
Navigation menu
Personal tools
Log in
Namespaces
Help page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Help
About
About the TSG
About this Wiki
FAQ
Disclaimer
Survey
Customer Survey
Tools
Special pages
Printable version