-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added: Support for assets available in Python
- Loading branch information
1 parent
d04155e
commit 6f751e5
Showing
7 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Changelog | ||
|
||
## Types of Changes and How to Note Them | ||
|
||
Added - For any new features that have been added since the last version was released | ||
Changed - To note any changes to the software's existing functionality | ||
Deprecated - To note any features that were once stable but are no longer and have thus been removed | ||
Fixed - Any bugs or errors that have been fixed should be so noted | ||
Removed - This notes any features that have been deleted and removed from the software | ||
Security - This acts as an invitation to users who want to upgrade and avoid any software vulnerabilities | ||
|
||
## 2 - unreleased | ||
|
||
* Added: Support for assets available in Python | ||
|
||
|
||
## 1 - 2014-03-15 | ||
|
||
Initial version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os | ||
|
||
def asset_path(asset): | ||
return os.path.join(os.path.join(os.path.dirname(__file__), "../assets"), asset) | ||
|
||
|
||
def open_asset(asset): | ||
path = asset_path(asset) | ||
return open(path, "r") | ||
|
||
|
||
def read_asset(asset): | ||
file = open_asset(asset) | ||
return file.read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Hello, World! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters