Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move files to src/ and add run_game.py
- Loading branch information
Showing
59 changed files
with
37 additions
and
0 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,37 @@ | ||
import sys | ||
|
||
if sys.version_info < (3, 6): | ||
sys.exit( | ||
"This game requires Python 3.6 or later." | ||
) | ||
|
||
import os | ||
from pathlib import Path | ||
|
||
|
||
dist = Path(__file__).parent.resolve() | ||
|
||
src = str(dist / 'src') | ||
sys.path.insert(0, src) | ||
os.chdir(src) | ||
|
||
|
||
try: | ||
import main | ||
except ImportError: | ||
import traceback | ||
traceback.print_exc() | ||
|
||
req = dist / 'requirements.txt' | ||
sys.exit( | ||
""" | ||
Please ensure you have the following packages installed: | ||
%s | ||
You can run 'pip install -r requirements.txt' to install these (currently this | ||
will require a compiler to be configured). | ||
You will also require AVBin from | ||
https://avbin.github.io/AVbin/Download.html | ||
""" % req.read_text() | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.