Skip to content

Commit a7844c5

Browse files
committed
Python 3 fix: save_settings
1 parent 78d7699 commit a7844c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

save_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ def save_settings(filename='~/.pymolrc-settings.py', quiet=1):
3535
print('# AUTOGENERATED FILE', file=f)
3636
print('from pymol import cmd, invocation', file=f)
3737
print('if invocation.options.show_splash:', end=' ', file=f) # no newline
38-
print(' print "Loading settings from",', repr(filename), file=f)
38+
print(' print("Loading settings from", ' + repr(filename) + ')', file=f)
3939
count = 0
4040
for name, o_value in original:
4141
value = cmd.get(name)
4242
if value != o_value:
4343
print('cmd.set("%s", %s)' % (name, repr(value)), file=f)
4444
if not quiet:
45-
print('set %s, %s # default: %s' % (name, value, o_value))
45+
print('set %s, %s ;# default: %s' % (name, value, o_value))
4646
count += 1
4747
f.close()
4848
if not quiet:

0 commit comments

Comments
 (0)