Skip to content

Commit e548e0c

Browse files
Add protection for first time install. Add pip upgrade to actions
1 parent dde6ae3 commit e548e0c

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

.github/workflows/fedora_41.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
run: |
7979
git submodule update --init --recursive
8080
source /home/wxpy/venvs/Py314/bin/activate
81+
python -m pip install -U pip
8182
pip install https://robotframework.transformidea.com/RIDE/packages/Linux/Fedora_41/wxpython-4.2.4a15946+920a2bde-cp314-cp314-linux_x86_64.whl
8283
pip install -r requirements-dev.txt
8384
pip install robotframework

.github/workflows/linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ jobs:
7979
sudo dnf install -y sdl12-compat python3-wxpython4 xorg-x11-server-Xvfb python3-pip python3-tkinter psmisc
8080
# sudo dnf downgrade -y mesa* --refresh
8181
git submodule update --init --recursive
82+
python -m pip install -U pip
8283
pip install -r requirements-dev.txt
8384
pip install robotframework
8485
- name: Run tests
@@ -115,6 +116,7 @@ jobs:
115116
sudo apt update -y
116117
sudo apt install -y libsdl1.2debian libsdl2-2.0-0 libnotify4 wxpython-tools
117118
git submodule update --init --recursive
119+
python -m pip install -U pip
118120
pip install -r requirements-dev.txt
119121
pip install robotframework
120122
- name: Run tests

.github/workflows/package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
sudo dnf install -y sdl12-compat python3-wxpython4 xorg-x11-server-Xvfb python3-pip python3-tkinter psmisc
7979
# sudo dnf downgrade -y mesa* --refresh
8080
git submodule update --init --recursive
81+
python -m pip install -U pip
8182
pip install -r requirements-dev.txt
8283
pip install robotframework
8384
- name: Run tests

.github/workflows/sonar.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- name: Install RIDE dependencies
3131
run: |
3232
git submodule update --init --recursive
33+
python -m pip install -U pip
3334
pip install -r requirements-dev.txt
3435
pip install robotframework
3536
- name: Run Xvfb

src/robotide/application/application.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,14 @@ def initialize_project_settings(self, path):
485485
if not exists, or returns the path to existing file.
486486
"""
487487
from ..preferences import initialize_settings
488-
default_dir = path if os.path.isdir(path) else os.path.dirname(path)
489-
local_settings_dir = os.path.join(default_dir, '.robot')
488+
if path:
489+
default_dir = path if os.path.isdir(path) else os.path.dirname(path)
490+
local_settings_dir = os.path.join(default_dir, '.robot')
491+
else:
492+
local_settings_dir = None
490493
old_settings_dir = self.settings_path
491494
# print(f"DEBUG: Project.py Project initialize_project_settings ENTER: path={local_settings_dir}")
492-
if os.path.isdir(local_settings_dir):
495+
if local_settings_dir and os.path.isdir(local_settings_dir):
493496
# old_settings = self.internal_settings.get_without_default('General')
494497
# old_bkg = old_settings['background']
495498
local_settings = os.path.join(local_settings_dir, 'ride_settings.cfg')

0 commit comments

Comments
 (0)