OS (e.g. Win10):
PsychoPy version (e.g. 1.84.x):
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?:
Run PsychoPy Builder experiment without a git command window opening.
What did you try to make it work?:
Poked in the PsychoPy source.
What specifically went wrong when you tried that?:
Found the offending source in psychopy/init.py.
When I run an experiment created in the Builder, a git command window pops up.
It appears that this is happening because of the following code in psychopy/init.py:
# for developers the following allows access to the current git sha from # their repository if __git_sha__ == 'n/a': from subprocess import check_output, PIPE # see if we're in a git repo and fetch from there try: thisFileLoc = os.path.split(__file__) output = check_output(['git', 'rev-parse', '--short', 'HEAD'], cwd=thisFileLoc, stderr=PIPE) except Exception: output = False if output: __git_sha__ = output.strip() # remove final linefeed
Is there any way to prevent this? Is there a flag I can set somewhere to specify that I’m not running from a repo?
Thanks for the awesome tool, and the great community involvement!