mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-09 06:21:13 +00:00
Added tags
This commit is contained in:
parent
bca1f711a5
commit
aa4280542b
50 changed files with 67 additions and 48 deletions
|
@ -2,7 +2,7 @@
|
|||
title: "Python Path Hacks"
|
||||
date: 2020-01-13T22:26:16-05:00
|
||||
draft: false
|
||||
images: []
|
||||
tags: [ "python" ]
|
||||
---
|
||||
|
||||
There are two quick ways to hack together custom imports in Python. One is by using the `PYTHONPATH` environmental variable, and the other way is by using the `sys` module in Python.
|
||||
|
@ -28,4 +28,4 @@ sys.path.append('/other/path')
|
|||
|
||||
## Remarks
|
||||
|
||||
Of course this isn't the best way to add custom libraries to your Python scripts. Ideally, we would use `pip` to manage our dependencies. Perhaps a future blog post will cover this!
|
||||
Of course this isn't the best way to add custom libraries to your Python scripts. Ideally, we would use `pip` to manage our dependencies. Perhaps a future blog post will cover this!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue