/dports/math/py-yt/yt-4.0.1/yt/utilities/tests/ |
H A D | test_config.py | 12 from yt.config import YTConfig, old_config_file 163 if not os.path.exists(os.path.dirname(old_config_file())): 164 os.makedirs(os.path.dirname(old_config_file())) 166 with open(old_config_file(), "w") as fh: 175 if os.path.exists(old_config_file() + ".bak"): 176 os.remove(old_config_file() + ".bak") 181 self.assertTrue(os.path.exists(old_config_file())) 187 self.assertFalse(os.path.exists(old_config_file())) 188 self.assertTrue(os.path.exists(old_config_file() + ".bak"))
|
/dports/math/py-yt/yt-4.0.1/yt/utilities/ |
H A D | configure.py | 5 from yt.config import YTConfig, old_config_file, ytcfg_defaults 51 if not os.path.exists(old_config_file()): 59 old_config.read(old_config_file()) 97 os.rename(old_config_file(), old_config_file() + ".bak")
|
/dports/x11-wm/mutter/mutter-41.1/src/tests/ |
H A D | monitor-config-migration-unit-tests.c | 46 g_autoptr (GFile) old_config_file = NULL; in test_migration() 63 old_config_file = g_file_new_for_path (old_config_path); in test_migration() 65 old_config_file, in test_migration()
|
H A D | monitor-unit-tests.c | 7437 g_autoptr (GFile) old_config_file = NULL; in meta_test_monitor_migrated_rotated() 7460 old_config_file = g_file_new_for_path (old_config_path); in meta_test_monitor_migrated_rotated() 7462 old_config_file, in meta_test_monitor_migrated_rotated() 7579 g_autoptr (GFile) old_config_file = NULL; in meta_test_monitor_migrated_wiggle_discard() 7602 old_config_file = g_file_new_for_path (old_config_path); in meta_test_monitor_migrated_wiggle_discard() 7604 old_config_file, in meta_test_monitor_migrated_wiggle_discard() 7850 g_autoptr (GFile) old_config_file = NULL; in meta_test_monitor_migrated_wiggle() 7873 old_config_file = g_file_new_for_path (old_config_path); in meta_test_monitor_migrated_wiggle() 7875 old_config_file, in meta_test_monitor_migrated_wiggle()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/tools/cr/cr/base/ |
H A D | client.py | 109 old_config_file = _GetConfigFile(old_config_dir) 110 old_config_exists = os.path.exists(old_config_file) 115 (old_config_file, new_config_file)) 117 print('Migrating config file from %s to %s...' % (old_config_file, 127 os.rename(old_config_file, new_config_file)
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/tools/cr/cr/base/ |
H A D | client.py | 109 old_config_file = _GetConfigFile(old_config_dir) 110 old_config_exists = os.path.exists(old_config_file) 115 (old_config_file, new_config_file)) 117 print('Migrating config file from %s to %s...' % (old_config_file, 127 os.rename(old_config_file, new_config_file)
|
/dports/devel/p5-CPAN-Reporter/CPAN-Reporter-1.2018/t/ |
H A D | 70_darwin_move_config.t | 26 my $old_config_file = File::Spec->catfile( $old_config_dir, "config.ini" ); 35 open FILE, ">$old_config_file" or die $!;
|
/dports/math/py-yt/yt-4.0.1/yt/ |
H A D | config.py | 80 def old_config_file(): function 90 _OLD_CONFIG_FILE = old_config_file() 202 if os.path.exists(old_config_file()):
|
/dports/databases/puppetdb6/puppetdb-6.19.1/ext/cli/ |
H A D | config-migration | 280 old_config_file=${old_config_dir}/config.ini 281 old_ini_files=($old_jetty_file $old_database_file $old_config_file)
|
/dports/databases/puppetdb7/puppetdb-7.8.0/ext/cli/ |
H A D | config-migration | 280 old_config_file=${old_config_dir}/config.ini 281 old_ini_files=($old_jetty_file $old_database_file $old_config_file)
|
/dports/deskutils/griffith/griffith-a593201179695efe93829d9c9a70962ef29dd109/lib/ |
H A D | backup.py | 225 old_config_file = False 239 old_config_file = new_file 247 if old_config_file: 249 f = open(old_config_file, 'r')
|
/dports/devel/thonny/thonny-3.3.14/thonny/ |
H A D | config.py | 68 old_config_file = os.path.join(old_user_dir, "configuration.ini") 69 if os.path.exists(old_config_file): 70 with open(old_config_file, "r", encoding="UTF-8") as fp:
|
/dports/mail/geary/geary-40.0/src/client/util/ |
H A D | util-migrate.vala | 30 File old_config_file; 57 old_config_file = old_data_dir.get_child(SETTINGS_FILENAME); 58 if (!old_config_file.query_exists()) 80 old_config_file.copy(new_config_file, FileCopyFlags.NONE);
|
/dports/emulators/py-gns3-converter/gns3-converter-1.2.4/gns3converter/ |
H A D | main.py | 310 old_config_file = os.path.join(source, config['old']) 313 if os.path.isfile(old_config_file): 315 shutil.copy(old_config_file, new_config_file)
|
/dports/games/freeorion/freeorion-0.4.10.2/util/ |
H A D | Directories.cpp | 189 const fs::path old_config_file = old_path / "config.xml"; in MigrateOldConfigDirsToXDGLocation() local 192 if (exists(old_config_file)) in MigrateOldConfigDirsToXDGLocation() 193 fs::copy(old_config_file, config_path / old_config_file.filename()); in MigrateOldConfigDirsToXDGLocation() 200 if (p == old_config_file || p == old_persistent_file) in MigrateOldConfigDirsToXDGLocation()
|
/dports/games/atanks/atanks-6.5/src/ |
H A D | atanks.cpp | 739 FILE* old_config_file = fopen(fullPath, "r"); in loadConfig() local 741 if (old_config_file) { in loadConfig() 742 env.load_from_file(old_config_file); in loadConfig() 756 result = loadPlayers(old_config_file); in loadConfig() 758 fclose(old_config_file); in loadConfig()
|
/dports/games/openyahtzee/openyahtzee-1.9.3/src/ |
H A D | MainFrame.cpp | 71 wxString old_config_file = wxFileName::GetHomeDir() + wxT("/.OpenYahtzee"); in MainFrame() local 74 if (wxFileExists(old_config_file) && !wxFileExists(config_file)) { in MainFrame() 75 wxRenameFile(old_config_file,config_file,false); in MainFrame()
|
/dports/deskutils/go-for-it/Go-For-It-1.9.6/src/ |
H A D | Utils.vala | 90 internal static string old_config_file {
|
/dports/mail/sympa/sympa-6.2.62/src/lib/Sympa/ |
H A D | List.pm | 5416 my ($config_file, $old_config_file) = @_; 5420 unless (rename $config_file, $old_config_file) { 5423 $config_file, $old_config_file
|