Browse code

pymolrc - v0.1 - Add command history

Fred authored on31/03/2019 17:32:07
Showing1 changed files
... ...
@@ -1,8 +1,8 @@
1 1
 # Title: .pymolrc
2 2
 # Author: Frédéric CHEVALIER <f15.chevalier@gmail.com>
3
-# Version: 0.0
3
+# Version: 0.1
4 4
 # Created in: 2018-08-06
5
-# Modified in: 
5
+# Modified in: 2019-03-31 
6 6
 
7 7
 
8 8
 
... ...
@@ -10,10 +10,22 @@
10 10
 # Versions #
11 11
 #==========#
12 12
 
13
+# v0.1 - 2019-03-31: add command history (stored locally)
13 14
 # v0.0 - 2018-08-06: creation
14 15
 
15 16
 
16 17
 
18
+#=========#
19
+# Options #
20
+#=========#
21
+
22
+# Command history
23
+import datetime
24
+_logdate = datetime.datetime.strftime(datetime.datetime.now(), "%y%m%d%H%M%S")
25
+cmd.log_open(filename="pymol-%s.pml"%_logdate)
26
+
27
+
28
+
17 29
 #=======================#
18 30
 # Default view settings #
19 31
 #=======================#