chelper-make-header-from-source did not work in .emacs.d now fixed.

This commit is contained in:
eisbaer 2022-10-07 00:04:28 +02:00
parent 7452400453
commit 21fa70979d
2 changed files with 5 additions and 3 deletions

View File

@ -6,11 +6,13 @@
(defun chelper-make-header-from-source ()
"Creates a C haeder file from the .c file in your current buffer"
(interactive)
(let ((h-buffer (create-file-buffer (get-header-file-name))))
(let ((h-buffer (create-file-buffer (get-header-file-name)))
(c-buffer (buffer-name (current-buffer))))
(with-current-buffer h-buffer
;; write the function headers
(insert (shell-command-to-string
(concat "python3 " user-emacs-directory "cHelper/main.py " (buffer-name (current-buffer)))))
(concat "python3 " user-emacs-directory "cHelper/main.py " c-buffer " "
user-emacs-directory "cHelper/")))
(goto-char (point-min))
(replace-regexp "[ ]+" " ")
(goto-char (point-min))

View File

@ -70,7 +70,7 @@ def main():
data = data.drop(['('], axis=1)
data['sb(>0'] = data.apply(lambda row: 0 if 0 == row['space_before_('] else 1, axis=1)
pickleFd = open('cluster.pkl', "rb")
pickleFd = open(sys.argv[2]+'cluster.pkl', "rb")
pipe = pickle.load(pickleFd)
pickleFd.close()