Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Libpython-clj clj-template

* https://github.com/clj-python/libpython-clj
* https://github.com/seancorfield/clj-new


Expand Down
6 changes: 3 additions & 3 deletions src/clj/new/libpython_clj/core.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns {{base}}.{{suffix}}
(:require [libpython-clj.python :as py :refer [py. py.- py.. py* py**]]
{{base}}.python
[libpython-clj.require :refer [require-python import-python]]))
(:require [libpython-clj2.python :as py :refer [py. py.- py.. py* py**]]
[{{base}}.python]
[libpython-clj2.require :refer [require-python import-python]]))

(import-python)

Expand Down
6 changes: 3 additions & 3 deletions src/clj/new/libpython_clj/python.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns {{base}}.python
(:require [libpython-clj.python :as py]))
(:require [libpython-clj2.python :as py]))

(defn initialize-python!
([] (py/initialize!))
Expand All @@ -11,5 +11,5 @@
;; you bind to below. Make sure you do this before you call 'require-python'
;; in any file.

;; (initialize-python! "/path/to/venv/bin/python")
(initialize-python! "python3.7")
;; (initialize-python! "/path/to/env/bin/python")
(initialize-python! "python3")