Skip to content

Commit

Permalink
changed from absolute to relative file path
Browse files Browse the repository at this point in the history
Signed-off-by: hikarikumo <[email protected]>
  • Loading branch information
hikarikumo committed Dec 17, 2023
1 parent b8810a0 commit fad6317
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 8 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
requires python >= 3.7

# CodeClimate Maintainability
[![Maintainability](https://api.codeclimate.com/v1/badges/5e5597a68a3fd9bd440f/maintainability)](https://codeclimate.com/github/alabarym/python-project-lvl1/maintainability)
# CodeClimate test coverage
Expand Down
1 change: 0 additions & 1 deletion brain_games/calc_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"""Calc games function to ask questions and verify the answers."""

import random

import prompt


Expand Down
1 change: 0 additions & 1 deletion brain_games/scripts/brain_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import sys
import os
# sys.path.append('/Users/vladimir.vasilenko/git/python-project-lvl1/brain_games/')
current_script_dir = os.path.dirname(__file__)
brain_games_path = os.path.join(current_script_dir, '..')
sys.path.append(brain_games_path)
Expand Down
5 changes: 4 additions & 1 deletion brain_games/scripts/brain_even.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"""Main cli module for even game."""

import sys
sys.path.append('/Users/vladimir.vasilenko/git/python-project-lvl1/brain_games/')
import os
current_script_dir = os.path.dirname(__file__)
brain_games_path = os.path.join(current_script_dir, '..')
sys.path.append(brain_games_path)
from cli import greet_first, welcome_user
from even_game import even_game_logic

Expand Down
1 change: 0 additions & 1 deletion brain_games/scripts/brain_games.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import sys
import os
# sys.path.append('/Users/vladimir.vasilenko/git/python-project-lvl1/brain_games/')
current_script_dir = os.path.dirname(__file__)
brain_games_path = os.path.join(current_script_dir, '..')
sys.path.append(brain_games_path)
Expand Down
5 changes: 4 additions & 1 deletion brain_games/scripts/brain_gcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"""Main script for gcd game."""

import sys
sys.path.append('/Users/vladimir.vasilenko/git/python-project-lvl1/brain_games/')
import os
current_script_dir = os.path.dirname(__file__)
brain_games_path = os.path.join(current_script_dir, '..')
sys.path.append(brain_games_path)
from cli import greet_first, welcome_user
from gcd_game import gcd_game, gcd_goal_message

Expand Down
5 changes: 4 additions & 1 deletion brain_games/scripts/brain_prime.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@


import sys
sys.path.append('/Users/vladimir.vasilenko/git/python-project-lvl1/brain_games/')
import os
current_script_dir = os.path.dirname(__file__)
brain_games_path = os.path.join(current_script_dir, '..')
sys.path.append(brain_games_path)
from cli import greet_first, welcome_user
from prime_game import prime_game, prime_goal

Expand Down
5 changes: 4 additions & 1 deletion brain_games/scripts/brain_progression.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@


import sys
sys.path.append('/Users/vladimir.vasilenko/git/python-project-lvl1/brain_games/')
import os
current_script_dir = os.path.dirname(__file__)
brain_games_path = os.path.join(current_script_dir, '..')
sys.path.append(brain_games_path)
from cli import greet_first, welcome_user
from progression_game import progression_game, progression_goal

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ brain-progression = "brain_games.scripts.brain_progression:main"
brain-prime = "brain_games.scripts.brain_prime:main"

[tool.poetry.dependencies]
python = "^3.7"
prompt = "^0.4.1"

[tool.poetry.dev-dependencies]
Expand Down

0 comments on commit fad6317

Please sign in to comment.