Skip to content

Triying to fix mac error with Rscript path#69

Merged
pabloati merged 1 commit into
masterfrom
v.1.1.3
Jun 23, 2026
Merged

Triying to fix mac error with Rscript path#69
pabloati merged 1 commit into
masterfrom
v.1.1.3

Conversation

@pabloati

Copy link
Copy Markdown
Contributor

This pull request updates the way the application determines its runtime path and includes a minor code cleanup. The most significant change is that the application now uses a dedicated directory in the user's home folder for its runtime path, which improves user data management and avoids cluttering the working directory.

Application path management:

  • Changed the initialization of appRunPath in DataApp.java to use a .tappas directory in the user's home folder instead of the current working directory. This helps keep application files organized and user-specific.

Code cleanup:

  • Commented out an unused variable assignment (rscriptPath) in the loadRscriptPath method for clarity.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts tappAS runtime path handling to prefer a user-specific hidden directory under the user’s home folder and cleans up loadRscriptPath() to avoid an unused/shadowing local variable.

Changes:

  • Updated DataApp.appRunPath to point to ~/.tappas instead of the current working directory.
  • Commented out an unused rscriptPath local variable in loadRscriptPath() (avoids shadowing the class field).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +205 to +206
//private final String appRunPath = System.getProperty("user.dir");
private final String appRunPath = Paths.get(System.getProperty("user.home"), ".tappas").toString();
if(Files.exists(Paths.get(getRScriptOverwriteFilepath()))) {
List<String> lines = Files.readAllLines(Paths.get(getRScriptOverwriteFilepath()), StandardCharsets.UTF_8);
String rscriptPath = "";
//String rscriptPath = "";
@pabloati pabloati merged commit ea9d962 into master Jun 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants