Skip to content

Commit

Permalink
5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Captain-FLAM committed Nov 7, 2023
1 parent 6da5d3a commit 981ad3a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# These are supported funding model platforms

# github: Captain-FLAM
github: Captain-FLAM
ko_fi: captain_flam
patreon: Captain_FLAM
# patreon: Captain_FLAM
# open_collective: # Replace with a single Open Collective username
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
Expand Down
25 changes: 9 additions & 16 deletions KaraFan.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,18 @@

import os, sys

Project = os.getcwd() # Get the current path

# Are we in the Parent directory ?
if os.path.basename(Project) != "KaraFan":
Project = os.path.join(Project, "KaraFan")

if not os.path.exists(Project):
print('ERROR : "KaraFan" folder not found !')
os._exit(0)

# os.chdir(Project)
Gdrive = os.getcwd()
Project = os.path.join(Gdrive, "KaraFan")

# Are we in the Project directory ?
if not os.path.exists(Project):
Gdrive = os.path.dirname(Gdrive) # Go to Parent directory
Project = os.path.join(Gdrive, "KaraFan")
os.chdir(Gdrive)

# Mandatory to import App modules
sys.path.insert(0, Project)

import App.main

Gdrive = os.path.dirname(Project) # Get Parent directory

params = {'Gdrive': Gdrive, 'Project': Project, 'isColab': False}

App.main.Start(params, GUI = "wxpython")
App.main.Start({'Gdrive': Gdrive, 'Project': Project, 'isColab': False}, GUI = "wxpython")
26 changes: 26 additions & 0 deletions KaraFan.pyw
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#! python3.11

# MIT License - Copyright (c) 2023 - Captain FLAM
#
# https://github.com/Captain-FLAM/KaraFan


# KaraFan works on your PC !!

import os, sys

Gdrive = os.getcwd()
Project = os.path.join(Gdrive, "KaraFan")

# Are we in the Project directory ?
if not os.path.exists(Project):
Gdrive = os.path.dirname(Gdrive) # Go to Parent directory
Project = os.path.join(Gdrive, "KaraFan")
os.chdir(Gdrive)

# Mandatory to import App modules
sys.path.insert(0, Project)

import App.main

App.main.Start({'Gdrive': Gdrive, 'Project': Project, 'isColab': False}, GUI = "wxpython")

0 comments on commit 981ad3a

Please sign in to comment.